Skip to content

Commit 099375a

Browse files
Merge pull request #2412 from giuseppe/enable-fanotify-init
seccomp: allow fanotify_init without CAP_SYS_ADMIN
2 parents f01ad5b + 8c41d98 commit 099375a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pkg/seccomp/default_linux.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ func DefaultProfile() *Seccomp {
145145
"fadvise64",
146146
"fadvise64_64",
147147
"fallocate",
148+
"fanotify_init",
148149
"fanotify_mark",
149150
"fchdir",
150151
"fchmod",
@@ -614,7 +615,6 @@ func DefaultProfile() *Seccomp {
614615
{
615616
Names: []string{
616617
"bpf",
617-
"fanotify_init",
618618
"lookup_dcookie",
619619
"quotactl",
620620
"quotactl_fd",
@@ -630,7 +630,6 @@ func DefaultProfile() *Seccomp {
630630
},
631631
{
632632
Names: []string{
633-
"fanotify_init",
634633
"lookup_dcookie",
635634
"perf_event_open",
636635
"quotactl",

pkg/seccomp/seccomp.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@
152152
"fadvise64",
153153
"fadvise64_64",
154154
"fallocate",
155+
"fanotify_init",
155156
"fanotify_mark",
156157
"fchdir",
157158
"fchmod",
@@ -691,7 +692,6 @@
691692
{
692693
"names": [
693694
"bpf",
694-
"fanotify_init",
695695
"lookup_dcookie",
696696
"quotactl",
697697
"quotactl_fd",
@@ -711,7 +711,6 @@
711711
},
712712
{
713713
"names": [
714-
"fanotify_init",
715714
"lookup_dcookie",
716715
"perf_event_open",
717716
"quotactl",

0 commit comments

Comments
 (0)