aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/test/landlock_layers
diff options
context:
space:
mode:
authorMickaël Salaün <mic@linux.microsoft.com>2024-09-30 10:36:22 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-09-30 11:08:28 +0000
commitbbd4e0a400943c9e45e1249ace6c202162a23bae (patch)
treee92fcff1c8c1a3a22acfc7b4f6e98957eb8aeb2b /sys/linux/test/landlock_layers
parent179f40292f64debb6b3ea2fe5e950f62f5a05a18 (diff)
sys/linux: add Landlock scopes for Linux 6.12
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 <mic@linux.microsoft.com>
Diffstat (limited to 'sys/linux/test/landlock_layers')
-rw-r--r--sys/linux/test/landlock_layers4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/linux/test/landlock_layers b/sys/linux/test/landlock_layers
index 166a4a930..ddd09bc4f 100644
--- a/sys/linux/test/landlock_layers
+++ b/sys/linux/test/landlock_layers
@@ -5,7 +5,7 @@ mkdirat(0xffffffffffffff9c, &AUTO='./file0/file0\x00', 0x1c0)
# Creates a first ruleset to restrict file creation.
-r0 = landlock_create_ruleset(&AUTO={0x100, 0x0}, AUTO, 0x0)
+r0 = landlock_create_ruleset(&AUTO={0x100, 0x0, 0x0}, AUTO, 0x0)
r1 = openat$dir(0xffffffffffffff9c, &AUTO='./file0\x00', 0x200000, 0x0)
landlock_add_rule$LANDLOCK_RULE_PATH_BENEATH(r0, AUTO, &AUTO={0x100, r1}, 0x0)
@@ -27,7 +27,7 @@ mknodat(0xffffffffffffff9c, &AUTO='./file1\x00', 0x81c0, 0x0) # EACCES
# Creates a second ruleset to restrict file removal.
-r2 = landlock_create_ruleset(&AUTO={0x20, 0x0}, AUTO, 0x0)
+r2 = landlock_create_ruleset(&AUTO={0x20, 0x0, 0x0}, AUTO, 0x0)
r3 = openat$dir(0xffffffffffffff9c, &AUTO='./file0/file0\x00', 0x200000, 0x0)
landlock_add_rule$LANDLOCK_RULE_PATH_BENEATH(r2, AUTO, &AUTO={0x20, r3}, 0x0)