syscall.sh / sh / setfsgid

setfsgid

set group identity used for filesystem checks

sys_setfsgid16(old_gid_t gid)
number139 (0x8b)
abicommon
entry pointsys_setfsgid16
sinceLinux 5.0
man pagesetfsgid(2)
sourceelixir.bootlin.com

Registers

registervalue
r3139, the syscall number
r4old_gid_t gid
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/setfsgid