Skip to content

Instantly share code, notes, and snippets.

@mrunalp
Created July 30, 2014 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrunalp/b684fdce11f2175b6d4d to your computer and use it in GitHub Desktop.
Save mrunalp/b684fdce11f2175b6d4d to your computer and use it in GitHub Desktop.
Sample interaction with userns shell
2014/07/30 15:00:44 Command started
sh-4.2# mount -t proc proc /proc
sh-4.2# cat /proc/self/uid_map
0 1000 1
sh-4.2# cat /proc/self/gid_map
0 1000 1
sh-4.2# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 15:00 pts/6 00:00:00 /bin/sh
root 5 1 0 15:01 pts/6 00:00:00 ps -ef
sh-4.2# id
uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
sh-4.2# grep Cap /proc/self/status
CapInh: 0000000000000000
CapPrm: 0000001fffffffff
CapEff: 0000001fffffffff
CapBnd: 0000001fffffffff
sh-4.2#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment