Skip to content

Commit

Permalink
Block io_uring syscalls by default
Browse files Browse the repository at this point in the history
  • Loading branch information
debfx committed Dec 28, 2023
1 parent 7f3f3a1 commit 701a29c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions seccomp_lists.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@ var SeccompAllow = []string{
"ioprio_set",
"io_setup",
"io_submit",
"io_uring_enter",
"io_uring_register",
"io_uring_setup",
"ipc",
"kill",
"landlock_add_rule",
Expand Down Expand Up @@ -377,6 +374,13 @@ var SeccompAllowDevel = []string{
"ptrace",
}

/*
blocked but not part of this list so ENOSYS is returned instead:
"clone3",
"io_uring_enter",
"io_uring_register",
"io_uring_setup",
*/
var SeccompEperm = []string{
"_sysctl",
"acct",
Expand All @@ -389,8 +393,6 @@ var SeccompEperm = []string{
"chroot",
"clock_settime",
"clock_settime64",
// return the default action ENOSYS instead
//"clone3",
"create_module",
"delete_module",
"fanotify_init",
Expand Down

0 comments on commit 701a29c

Please sign in to comment.