aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/test/landlock_fs_reparent
diff options
context:
space:
mode:
authorMickaël Salaün <mic@linux.microsoft.com>2023-10-10 18:28:59 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-10-13 13:15:32 +0000
commit2f3c16ff202947ee7671f5b36c2cd294449ff26f (patch)
tree34284618dc5d7d58c946c2eae031cb80f3766651 /sys/linux/test/landlock_fs_reparent
parent6388bc36373b7e4e4dbac9101b34007e839a74bd (diff)
sys/linux: add the Landlock network rule type and access rights
Add the new lanlock_net_port_attr struct and related LANDLOCK_ACCESS_NET_{BIND,CONNECT}_TCP flags for TCP access control. Add landlock_ruleset_attr's handled_access_net field and fix handled_access_fs name. Update tests with the new landlock_ruleset_attr's handled_access_net field. Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com>
Diffstat (limited to 'sys/linux/test/landlock_fs_reparent')
-rw-r--r--sys/linux/test/landlock_fs_reparent2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/linux/test/landlock_fs_reparent b/sys/linux/test/landlock_fs_reparent
index 08d78decb..20934003d 100644
--- a/sys/linux/test/landlock_fs_reparent
+++ b/sys/linux/test/landlock_fs_reparent
@@ -12,7 +12,7 @@ mkdirat(0xffffffffffffff9c, &AUTO='./file1/file4/file7\x00', 0x1c0)
# Creates a ruleset to restrict file linking/renaming and execution (to get an extra access right).
-r0 = landlock_create_ruleset(&AUTO={0x2001}, AUTO, 0x0)
+r0 = landlock_create_ruleset(&AUTO={0x2001, 0x0}, AUTO, 0x0)
# Allows link and rename from and to file1.