syscall.sh / x32 / setgid

setgid

set group identity

sys_setgid(gid_t gid)
number1073741930 (0x4000006a)
abicommon
entry pointsys_setgid
sinceLinux 3.4
man pagesetgid(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073741930, 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/x32/setgid