bits/syscall.h: add landlock_* from linux v5.13
Subsystems (7)
PATCH 1/1 bits/syscall.h: add landlock_* from linux v5.13
From: Mickaël Salaün <[email protected]>
Add three system calls for all architectures:
* landlock_create_ruleset
* landlock_add_rule
* landlock_restrict_self
They enable creating unprivileged security sandboxes, see
linux commit a49f4f81cb48925e8d7cbd9e59068f516e984144
arch: Wire up Landlock syscalls
https://www.kernel.org/doc/html/latest/userspace-api/landlock.html
--- arch/aarch64/bits/syscall.h.in | 3 +++ arch/arm/bits/syscall.h.in | 3 +++ arch/i386/bits/syscall.h.in | 3 +++ arch/m68k/bits/syscall.h.in | 3 +++ arch/microblaze/bits/syscall.h.in | 3 +++ arch/mips/bits/syscall.h.in | 3 +++ arch/mips64/bits/syscall.h.in | 3 +++ arch/mipsn32/bits/syscall.h.in | 3 +++ arch/or1k/bits/syscall.h.in | 3 +++ arch/powerpc/bits/syscall.h.in | 3 +++ arch/powerpc64/bits/syscall.h.in | 3 +++ arch/riscv64/bits/syscall.h.in | 3 +++ arch/s390x/bits/syscall.h.in | 3 +++ arch/sh/bits/syscall.h.in | 3 +++ arch/x86_64/bits/syscall.h.in | 3 +++ 15 files changed, 45 insertions(+)
arch/aarch64/bits/syscall.h.in +3 -0
@@ -294,4 +294,7 @@ #define __NR_pidfd_getfd 438 #define __NR_faccessat2 439 #define __NR_process_madvise 440 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_restrict_self 446
arch/arm/bits/syscall.h.in +3 -0
@@ -394,6 +394,9 @@ #define __NR_pidfd_getfd 438 #define __NR_faccessat2 439 #define __NR_process_madvise 440 +#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
arch/i386/bits/syscall.h.in +3 -0
@@ -431,4 +431,7 @@ #define __NR_pidfd_getfd 438 #define __NR_faccessat2 439 #define __NR_process_madvise 440 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_restrict_self 446
arch/m68k/bits/syscall.h.in +3 -0
@@ -411,3 +411,6 @@ #define __NR_pidfd_getfd 438 #define __NR_faccessat2 439 #define __NR_process_madvise 440 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_restrict_self 446
arch/microblaze/bits/syscall.h.in +3 -0
@@ -432,4 +432,7 @@ #define __NR_pidfd_getfd 438 #define __NR_faccessat2 439 #define __NR_process_madvise 440 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_restrict_self 446
arch/mips/bits/syscall.h.in +3 -0
@@ -413,4 +413,7 @@ #define __NR_pidfd_getfd 4438 #define __NR_faccessat2 4439 #define __NR_process_madvise 4440 +#define __NR_landlock_create_ruleset 4444 +#define __NR_landlock_add_rule 4445 +#define __NR_landlock_restrict_self 4446
arch/mips64/bits/syscall.h.in +3 -0
@@ -343,4 +343,7 @@ #define __NR_pidfd_getfd 5438 #define __NR_faccessat2 5439 #define __NR_process_madvise 5440 +#define __NR_landlock_create_ruleset 5444 +#define __NR_landlock_add_rule 5445 +#define __NR_landlock_restrict_self 5446
arch/mipsn32/bits/syscall.h.in +3 -0
@@ -367,4 +367,7 @@ #define __NR_pidfd_getfd 6438 #define __NR_faccessat2 6439 #define __NR_process_madvise 6440 +#define __NR_landlock_create_ruleset 6444 +#define __NR_landlock_add_rule 6445 +#define __NR_landlock_restrict_self 6446
arch/or1k/bits/syscall.h.in +3 -0
@@ -316,4 +316,7 @@ #define __NR_pidfd_getfd 438 #define __NR_faccessat2 439 #define __NR_process_madvise 440 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_restrict_self 446
arch/powerpc/bits/syscall.h.in +3 -0
@@ -420,4 +420,7 @@ #define __NR_pidfd_getfd 438 #define __NR_faccessat2 439 #define __NR_process_madvise 440 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_restrict_self 446
arch/powerpc64/bits/syscall.h.in +3 -0
@@ -392,4 +392,7 @@ #define __NR_pidfd_getfd 438 #define __NR_faccessat2 439 #define __NR_process_madvise 440 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_restrict_self 446
arch/riscv64/bits/syscall.h.in +3 -0
@@ -294,6 +294,9 @@ #define __NR_pidfd_getfd 438 #define __NR_faccessat2 439 #define __NR_process_madvise 440 +#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)
arch/s390x/bits/syscall.h.in +3 -0
@@ -357,4 +357,7 @@ #define __NR_pidfd_getfd 438 #define __NR_faccessat2 439 #define __NR_process_madvise 440 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_restrict_self 446
arch/sh/bits/syscall.h.in +3 -0
@@ -404,4 +404,7 @@ #define __NR_pidfd_getfd 438 #define __NR_faccessat2 439 #define __NR_process_madvise 440 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_restrict_self 446
arch/x86_64/bits/syscall.h.in +3 -0
@@ -350,4 +350,7 @@ #define __NR_pidfd_getfd 438 #define __NR_faccessat2 439 #define __NR_process_madvise 440 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_restrict_self 446
base-commit: 3f701faace7addc75d16dea8a6cd769fa5b3f260
Signature · 1 line
2.32.0
Quoted 9 lines · Mickaël Salaün
From: Mickaël Salaün <[email protected]>
Add three system calls for all architectures:
*landlock_create_ruleset
*landlock_add_rule
*landlock_restrict_selfThey enable creating unprivileged security sandboxes, see
Quoted 7 lines
linux commit
a49f4f81cb48925e8d7cbd9e59068f516e984144
arch: Wire up Landlock syscallshttps://www.kernel.org/doc/html/latest/userspace-api/landlock.html
thanks,
note i have outstanding patches to update musl to linux 5.13
Quoted 15 lines · Szabolcs Nagy
Quoted 14 lines · Mickaël Salaün
From: Mickaël Salaün <[email protected]>
Add three system calls for all architectures:
*landlock_create_ruleset
*landlock_add_rule
*landlock_restrict_selfThey enable creating unprivileged security sandboxes, see
linux commit
a49f4f81cb48925e8d7cbd9e59068f516e984144
arch: Wire up Landlock syscallshttps://www.kernel.org/doc/html/latest/userspace-api/landlock.html
Quoted 9 lines
Quoted 2 lines
thanks,
note i have outstanding patches to update musl to linux 5.13
OK, cool!
BTW, what is the policy to add syscall APIs (e.g. the landlock_create_ruleset function)?