rootshell: add some more comments explaining the magic GIDs

This commit is contained in:
Will Greenberg
2024-07-23 11:37:32 -07:00
committed by Cooper Quintin
parent fd1879d70a
commit 3006871c27
+3
View File
@@ -11,6 +11,9 @@ use nix::unistd::Gid;
fn main() {
let mut args = env::args();
// Android's "paranoid network" feature restricts network access to
// processes in specific groups. More info here:
// https://www.elinux.org/Android_Security#Paranoid_network-ing
let gids = &[
Gid::from_raw(3003), // AID_INET
Gid::from_raw(3004), // AID_NET_RAW