Created
September 22, 2018 12:05
-
-
Save Wolf480pl/2cf6187df922ef7e8a6f208b3d1d3478 to your computer and use it in GitHub Desktop.
An eaxmpel of what pivot_root syscall does
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before: | |
109 108 202:1 / / rw,relatime - ext4 /dev/xvda1 rw,errors=remount-ro,data=ordered | |
131 109 0:3 / /proc rw,nosuid,nodev,noexec,relatime - proc proc rw | |
133 131 0:33 / /proc/sys/fs/binfmt_misc rw,relatime - binfmt_misc binfmt_misc rw | |
134 109 202:16 / /media/bulk rw,relatime - ext4 /dev/xvdb rw,data=ordered | |
135 109 202:1 /tmp/sio2jail-tZd8KB /tmp/sio2jail-tZd8KB rw,relatime - ext4 /dev/xvda1 rw,errors=remount-ro,data=ordered | |
136 135 202:1 /home/users/wolf480/sio2jail/bin/boxes/compiler-python3.5.3_i386 /tmp/sio2jail-tZd8KB ro,nosuid,nodev,relatime - ext4 /dev/xvda1 rw,errors=remount-ro,data=ordered | |
before (human-readable): | |
108 | |
\_109 / 202:1 / | |
\_131 /proc 0:3 / | |
| \_133 /proc/sys/fs/binfmt_misc 0:33 / | |
\_134 /media/bulk 202:16 / | |
\_135 /tmp/sio2jail-tZd8KB 202:1 /tmp/sio2jail-tZd8KB | |
\_136 /tmp/sio2jail-tZd8KB 202:1 /home/users/wolf480/sio2jail/bin/boxes/compiler-python3.5.3_i386 | |
after: | |
109 136 202:1 / / rw,relatime - ext4 /dev/xvda1 rw,errors=remount-ro,data=ordered | |
131 109 0:3 / /proc rw,nosuid,nodev,noexec,relatime - proc proc rw | |
133 131 0:33 / /proc/sys/fs/binfmt_misc rw,relatime - binfmt_misc binfmt_misc rw | |
134 109 202:16 / /media/bulk rw,relatime - ext4 /dev/xvdb rw,data=ordered | |
135 109 202:1 /tmp/sio2jail-tZd8KB /tmp/sio2jail-tZd8KB rw,relatime - ext4 /dev/xvda1 rw,errors=remount-ro,data=ordered | |
136 108 202:1 /home/users/wolf480/sio2jail/bin/boxes/compiler-python3.5.3_i386 / ro,nosuid,nodev,relatime - ext4 /dev/xvda1 rw,errors=remount-ro,data=ordered | |
137 136 0:34 / /proc rw,nosuid,nodev,noexec,relatime - proc proc rw | |
after (human readable): | |
108 | |
\_136 / 202:1 /home/users/wolf480/sio2jail/bin/boxes/compiler-python3.5.3_i386 | |
\_137 /proc 0:34 / | |
\_109 / 202:1 / | |
\_131 /proc 0:3 / | |
| \_133 /proc/sys/fs/binfmt_misc 0:33 / | |
\_134 /media/bulk 202:16 / | |
\_135 /tmp/sio2jail-tZd8KB 202:1 /tmp/sio2jail-tZd8KB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment