syscall.sh / x64 / setgid

setgid

set group identity

sys_setgid(gid_t gid)
number106 (0x6a)
abicommon
entry pointsys_setgid
sinceLinux 3.3
man pagesetgid(2)
sourceelixir.bootlin.com

Registers

registervalue
rax106, the syscall number
rdigid_t gid
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/x64/setgid