syscall.sh / x64 / capset

capset

set/get capabilities of thread(s)

sys_capset(cap_user_header_t header, const cap_user_data_t data)
number126 (0x7e)
abicommon
entry pointsys_capset
sinceLinux 3.3
man pagecapset(2)
sourceelixir.bootlin.com

Registers

registervalue
rax126, the syscall number
rdicap_user_header_t header
rsiconst cap_user_data_t data
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/capset