syscall.sh / x86 / setgid32

setgid32

set group identity

sys_setgid(gid_t gid)
number214 (0xd6)
abii386
entry pointsys_setgid
sinceLinux 3.3
man pagesetgid32(2)
sourceelixir.bootlin.com

Registers

registervalue
eax214, the syscall number
ebxgid_t gid
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

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