syscall.sh / x32 / chroot

chroot

change root directory

sys_chroot(const char *filename)
number1073741985 (0x400000a1)
abicommon
entry pointsys_chroot
sinceLinux 3.4
man pagechroot(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073741985, the syscall number
rdiconst char *filename
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/chroot