Browse Source

Merge pull request #43199 from Xyene/allow-landlock

seccomp: add support for Landlock syscalls in default policy
Sebastiaan van Stijn 3 years ago
parent
commit
e9712464ad
2 changed files with 6 additions and 0 deletions
  1. 3 0
      profiles/seccomp/default.json
  2. 3 0
      profiles/seccomp/default_linux.go

+ 3 - 0
profiles/seccomp/default.json

@@ -183,6 +183,9 @@
 				"io_uring_setup",
 				"io_uring_setup",
 				"ipc",
 				"ipc",
 				"kill",
 				"kill",
+				"landlock_add_rule",
+				"landlock_create_ruleset",
+				"landlock_restrict_self",
 				"lchown",
 				"lchown",
 				"lchown32",
 				"lchown32",
 				"lgetxattr",
 				"lgetxattr",

+ 3 - 0
profiles/seccomp/default_linux.go

@@ -175,6 +175,9 @@ func DefaultProfile() *Seccomp {
 					"io_uring_setup",
 					"io_uring_setup",
 					"ipc",
 					"ipc",
 					"kill",
 					"kill",
+					"landlock_add_rule",
+					"landlock_create_ruleset",
+					"landlock_restrict_self",
 					"lchown",
 					"lchown",
 					"lchown32",
 					"lchown32",
 					"lgetxattr",
 					"lgetxattr",