Skip to content

Commit

Permalink
rootshell: add some more comments explaining the magic GIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
wgreenberg authored and cooperq committed Aug 2, 2024
1 parent fd1879d commit 3006871
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rootshell/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3006871

Please sign in to comment.