lsm_set_self_attr on x64
sys_lsm_set_self_attr(unsigned int attr, struct lsm_ctx *ctx, u32 size, u32 flags)
| number | 460 (0x1cc) |
|---|---|
| abi | common |
| entry point | sys_lsm_set_self_attr |
| since | Linux 6.8 |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 460, the syscall number |
rdi | unsigned int attr |
rsi | struct lsm_ctx *ctx |
rdx | u32 size |
r10 | u32 flags |
rax | the return value |
Then run syscall to enter the kernel.
The syscall instruction clobbers rcx (the return address lands in rcx) and r11 (the flags land in r11).
Since Linux 5.14 the kernel reads the syscall number from eax and ignores the upper 32 bits of rax. Older kernels fail with ENOSYS when those bits are not zero, and mov eax, N clears them, so it works on both.
Same syscall on other architectures
- x86 460
- arm64 460
- arm 460
- riscv64 460
- ia32 460
- x32 1073742284
- loongarch64 460
- ppc64 460
- ppc 460
- s390x 460
- mips64 5460
- mipsn32 6460
- mipso32 4460
- alpha 570
- arc 460
- csky 460
- hexagon 460
- m68k 460
- microblaze 460
- nios2 460
- openrisc 460
- parisc 460
- sh 460
- sparc 460
- sparc64 460
- xtensa 460
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/lsm_set_self_attr