landlock_restrict_self on loongarch64

enforce a Landlock ruleset

sys_landlock_restrict_self(int ruleset_fd, __u32 flags)
number446 (0x1be)
abicommon
kconfigCONFIG_SECURITY_LANDLOCK
familylandlock see the whole family on loongarch64
entry pointsys_landlock_restrict_self
sinceLinux 5.19 or earlier (5.19 is the first release scanned for loongarch64)
man pagelandlock_restrict_self(2)
sourceelixir.bootlin.com

Registers

registervalue
a7446, the syscall number
a0int ruleset_fd
a1__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_restrict_self