syscall.sh / sh / setns

setns

reassociate thread with a namespace

sys_setns(int fd, int nstype)
number364 (0x16c)
abicommon
entry pointsys_setns
sinceLinux 5.0
man pagesetns(2)
sourceelixir.bootlin.com

Registers

registervalue
r3364, the syscall number
r4int fd
r5int nstype
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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