syscall.sh / sparc64 / 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.13
man pagelandlock_add_rule(2)
sourceelixir.bootlin.com

Registers

registervalue
g1445, the syscall number
o0int ruleset_fd
o1enum landlock_rule_type rule_type
o2const void *rule_attr
o3__u32 flags
o0the return value

Then run t 0x6d to enter the kernel.

Same syscall on other architectures

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