syscall.sh / x86 / landlock_restrict_self
landlock_restrict_self
enforce a Landlock ruleset
sys_landlock_restrict_self(int ruleset_fd, __u32 flags)
| number | 446 (0x1be) |
|---|---|
| abi | i386 |
| entry point | sys_landlock_restrict_self |
| since | Linux 5.13 |
| man page | landlock_restrict_self(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 446, the syscall number |
ebx | int ruleset_fd |
ecx | __u32 flags |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- x64 446
- arm64 446
- arm 446
- riscv64 446
- x32 1073742270
- loongarch64 446
- ppc64 446
- ppc 446
- s390x 446
- mips64 5446
- mipsn32 6446
- mipso32 4446
- alpha 556
- arc 446
- csky 446
- hexagon 446
- m68k 446
- microblaze 446
- nios2 446
- openrisc 446
- parisc 446
- sh 446
- sparc 446
- sparc64 446
- xtensa 446
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/landlock_restrict_self