From bbd4e0a400943c9e45e1249ace6c202162a23bae Mon Sep 17 00:00:00 2001 From: Mickaël Salaün Date: Mon, 30 Sep 2024 10:36:22 +0200 Subject: sys/linux: add Landlock scopes for Linux 6.12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add new the landlock_ruleset_attr's "scoped" field and related flags for Linux 6.12: LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET and LANDLOCK_SCOPE_SIGNAL. Update tests with the new landlock_ruleset_attr's field. Signed-off-by: Mickaël Salaün --- sys/linux/landlock.txt.const | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/linux/landlock.txt.const') diff --git a/sys/linux/landlock.txt.const b/sys/linux/landlock.txt.const index 1fce9aa48..142c76bf1 100644 --- a/sys/linux/landlock.txt.const +++ b/sys/linux/landlock.txt.const @@ -20,6 +20,8 @@ LANDLOCK_ACCESS_NET_BIND_TCP = 1 LANDLOCK_ACCESS_NET_CONNECT_TCP = 2 LANDLOCK_RULE_NET_PORT = 2 LANDLOCK_RULE_PATH_BENEATH = 1 +LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET = 1 +LANDLOCK_SCOPE_SIGNAL = 2 __NR_landlock_add_rule = 445, mips64le:5445 __NR_landlock_create_ruleset = 444, mips64le:5444 __NR_landlock_restrict_self = 446, mips64le:5446 -- cgit mrf-deployment