Skip to content

Commit 4584282

Browse files
authored
Merge pull request #424 from blue42u/cap-perfmon
seccomp: allow perf_event_open if CAP_PERFMON
2 parents cacf855 + 46d01fc commit 4584282

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

common/pkg/seccomp/default_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ func DefaultProfile() *Seccomp {
616616
Names: []string{
617617
"bpf",
618618
"lookup_dcookie",
619+
"perf_event_open",
619620
"quotactl",
620621
"quotactl_fd",
621622
"setdomainname",
@@ -631,7 +632,6 @@ func DefaultProfile() *Seccomp {
631632
{
632633
Names: []string{
633634
"lookup_dcookie",
634-
"perf_event_open",
635635
"quotactl",
636636
"quotactl_fd",
637637
"setdomainname",
@@ -927,7 +927,7 @@ func DefaultProfile() *Seccomp {
927927
ErrnoRet: &eperm,
928928
Args: []*Arg{},
929929
Excludes: Filter{
930-
Caps: []string{"CAP_SYS_ADMIN", "CAP_BPF"},
930+
Caps: []string{"CAP_SYS_ADMIN", "CAP_PERFMON"},
931931
},
932932
},
933933
{

common/pkg/seccomp/seccomp.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,7 @@
693693
"names": [
694694
"bpf",
695695
"lookup_dcookie",
696+
"perf_event_open",
696697
"quotactl",
697698
"quotactl_fd",
698699
"setdomainname",
@@ -712,7 +713,6 @@
712713
{
713714
"names": [
714715
"lookup_dcookie",
715-
"perf_event_open",
716716
"quotactl",
717717
"quotactl_fd",
718718
"setdomainname",
@@ -1105,7 +1105,7 @@
11051105
"excludes": {
11061106
"caps": [
11071107
"CAP_SYS_ADMIN",
1108-
"CAP_BPF"
1108+
"CAP_PERFMON"
11091109
]
11101110
},
11111111
"errnoRet": 1,

0 commit comments

Comments
 (0)