syscall.sh / loongarch64 / landlock_add_rule

landlock_add_rule

add a new Landlock rule to a ruleset

sys_landlock_add_rule(int ruleset_fd, enum landlock_rule_type rule_type, const void *rule_attr, __u32 flags)
number445 (0x1bd)
abicommon
entry pointsys_landlock_add_rule
sinceLinux 5.19
man pagelandlock_add_rule(2)
sourceelixir.bootlin.com

Registers

registervalue
a7445, the syscall number
a0int ruleset_fd
a1enum landlock_rule_type rule_type
a2const void *rule_attr
a3__u32 flags
a0the return value

Then run syscall 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/landlock_add_rule