bits/syscall.h: add landlock syscalls from linux v5.13
authorSzabolcs Nagy <nsz@port70.net>
Sun, 4 Jul 2021 16:34:15 +0000 (16:34 +0000)
committerRich Felker <dalias@aerifal.cx>
Tue, 8 Mar 2022 22:21:14 +0000 (17:21 -0500)
see

  linux commit a49f4f81cb48925e8d7cbd9e59068f516e984144
  arch: Wire up Landlock syscalls

  linuxcommit 17ae69aba89dbfa2139b7f8024b757ab3cc42f59
  Merge tag 'landlock_v34' of ... jmorris/linux-security

Landlock provides for unprivileged application sandboxing. The goal of
Landlock is to enable to restrict ambient rights (e.g. global filesystem
access) for a set of processes. Landlock is inspired by seccomp-bpf but
instead of filtering syscalls and their raw arguments, a Landlock rule
can restrict the use of kernel objects like file hierarchies, according
to the kernel semantic.

16 files changed:
arch/aarch64/bits/syscall.h.in
arch/arm/bits/syscall.h.in
arch/i386/bits/syscall.h.in
arch/m68k/bits/syscall.h.in
arch/microblaze/bits/syscall.h.in
arch/mips/bits/syscall.h.in
arch/mips64/bits/syscall.h.in
arch/mipsn32/bits/syscall.h.in
arch/or1k/bits/syscall.h.in
arch/powerpc/bits/syscall.h.in
arch/powerpc64/bits/syscall.h.in
arch/riscv64/bits/syscall.h.in
arch/s390x/bits/syscall.h.in
arch/sh/bits/syscall.h.in
arch/x32/bits/syscall.h.in
arch/x86_64/bits/syscall.h.in

index 037da21..5f420e6 100644 (file)
 #define __NR_process_madvise   440
 #define __NR_epoll_pwait2      441
 #define __NR_mount_setattr     442
+#define __NR_landlock_create_ruleset   444
+#define __NR_landlock_add_rule 445
+#define __NR_landlock_restrict_self    446
 
index 8919137..048fdea 100644 (file)
 #define __NR_process_madvise   440
 #define __NR_epoll_pwait2      441
 #define __NR_mount_setattr     442
+#define __NR_landlock_create_ruleset   444
+#define __NR_landlock_add_rule 445
+#define __NR_landlock_restrict_self    446
 
 #define __ARM_NR_breakpoint    0x0f0001
 #define __ARM_NR_cacheflush    0x0f0002
index 4c04ea8..46ffe1d 100644 (file)
 #define __NR_process_madvise   440
 #define __NR_epoll_pwait2      441
 #define __NR_mount_setattr     442
+#define __NR_landlock_create_ruleset   444
+#define __NR_landlock_add_rule 445
+#define __NR_landlock_restrict_self    446
 
index 136775b..a0c6332 100644 (file)
 #define __NR_process_madvise   440
 #define __NR_epoll_pwait2      441
 #define __NR_mount_setattr     442
+#define __NR_landlock_create_ruleset   444
+#define __NR_landlock_add_rule 445
+#define __NR_landlock_restrict_self    446
index 10f27ab..931d791 100644 (file)
 #define __NR_process_madvise   440
 #define __NR_epoll_pwait2      441
 #define __NR_mount_setattr     442
+#define __NR_landlock_create_ruleset   444
+#define __NR_landlock_add_rule 445
+#define __NR_landlock_restrict_self    446
 
index 1d0deed..63e3503 100644 (file)
 #define __NR_process_madvise   4440
 #define __NR_epoll_pwait2      4441
 #define __NR_mount_setattr     4442
+#define __NR_landlock_create_ruleset   4444
+#define __NR_landlock_add_rule 4445
+#define __NR_landlock_restrict_self    4446
 
index b1b83f5..b89965d 100644 (file)
 #define __NR_process_madvise   5440
 #define __NR_epoll_pwait2      5441
 #define __NR_mount_setattr     5442
+#define __NR_landlock_create_ruleset   5444
+#define __NR_landlock_add_rule 5445
+#define __NR_landlock_restrict_self    5446
 
index bfaa080..bb2d04a 100644 (file)
 #define __NR_process_madvise   6440
 #define __NR_epoll_pwait2      6441
 #define __NR_mount_setattr     6442
+#define __NR_landlock_create_ruleset   6444
+#define __NR_landlock_add_rule 6445
+#define __NR_landlock_restrict_self    6446
 
index 3c60eda..2b5f205 100644 (file)
 #define __NR_process_madvise   440
 #define __NR_epoll_pwait2      441
 #define __NR_mount_setattr     442
+#define __NR_landlock_create_ruleset   444
+#define __NR_landlock_add_rule 445
+#define __NR_landlock_restrict_self    446
 
index 33e26e4..b1605a5 100644 (file)
 #define __NR_process_madvise   440
 #define __NR_epoll_pwait2      441
 #define __NR_mount_setattr     442
+#define __NR_landlock_create_ruleset   444
+#define __NR_landlock_add_rule 445
+#define __NR_landlock_restrict_self    446
 
index 38bb23c..b3a8fba 100644 (file)
 #define __NR_process_madvise   440
 #define __NR_epoll_pwait2      441
 #define __NR_mount_setattr     442
+#define __NR_landlock_create_ruleset   444
+#define __NR_landlock_add_rule 445
+#define __NR_landlock_restrict_self    446
 
index a9cbfb5..b534afe 100644 (file)
 #define __NR_process_madvise   440
 #define __NR_epoll_pwait2      441
 #define __NR_mount_setattr     442
+#define __NR_landlock_create_ruleset   444
+#define __NR_landlock_add_rule 445
+#define __NR_landlock_restrict_self    446
 
 #define __NR_sysriscv __NR_arch_specific_syscall
 #define __NR_riscv_flush_icache (__NR_sysriscv + 15)
index 88de514..dfc3847 100644 (file)
 #define __NR_process_madvise   440
 #define __NR_epoll_pwait2      441
 #define __NR_mount_setattr     442
+#define __NR_landlock_create_ruleset   444
+#define __NR_landlock_add_rule 445
+#define __NR_landlock_restrict_self    446
 
index 1a90026..ff14f54 100644 (file)
 #define __NR_process_madvise   440
 #define __NR_epoll_pwait2      441
 #define __NR_mount_setattr     442
+#define __NR_landlock_create_ruleset   444
+#define __NR_landlock_add_rule 445
+#define __NR_landlock_restrict_self    446
 
index d90cb15..5d22fa1 100644 (file)
 #define __NR_process_madvise   (0x40000000 + 440)
 #define __NR_epoll_pwait2      (0x40000000 + 441)
 #define __NR_mount_setattr     (0x40000000 + 442)
+#define __NR_landlock_create_ruleset   (0x40000000 + 444)
+#define __NR_landlock_add_rule (0x40000000 + 445)
+#define __NR_landlock_restrict_self    (0x40000000 + 446)
 
 
 #define __NR_rt_sigaction (0x40000000 + 512)
index 634e29f..c3882de 100644 (file)
 #define __NR_process_madvise   440
 #define __NR_epoll_pwait2      441
 #define __NR_mount_setattr     442
+#define __NR_landlock_create_ruleset   444
+#define __NR_landlock_add_rule 445
+#define __NR_landlock_restrict_self    446