landlock_add_rule on nds32

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
kconfigCONFIG_SECURITY_LANDLOCK
familylandlock see the whole family on nds32
entry pointsys_landlock_add_rule
sinceLinux 5.13
man pagelandlock_add_rule(2)
sourceelixir.bootlin.com

Registers

registervalue
r15445, the syscall number
r0int ruleset_fd
r1enum landlock_rule_type rule_type
r2const void *rule_attr
r3__u32 flags
r0the return value

Then run syscall to enter the kernel.

This architecture was removed from the Linux kernel in Linux 5.18. The newest release with a syscall table here is Linux 5.17. The other removed architectures live on the historical architectures page.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/nds32/landlock_add_rule?kernel=all