Skip to content

Commit

Permalink
Merge pull request #7574 from swagatbora90/backport-cap-bpf-perfmon
Browse files Browse the repository at this point in the history
[release/1.6] adding support of CAP_BPF and CAP_PERFMON
  • Loading branch information
dmcgowan committed Oct 24, 2022
2 parents 8b9c35a + 346412f commit 96929a5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions contrib/seccomp/seccomp_default.go
Expand Up @@ -658,6 +658,18 @@ func DefaultProfile(sp *specs.Spec) *specs.LinuxSeccomp {
Action: specs.ActAllow,
Args: []specs.LinuxSeccompArg{},
})
case "CAP_BPF":
s.Syscalls = append(s.Syscalls, specs.LinuxSyscall{
Names: []string{"bpf"},
Action: specs.ActAllow,
Args: []specs.LinuxSeccompArg{},
})
case "CAP_PERFMON":
s.Syscalls = append(s.Syscalls, specs.LinuxSyscall{
Names: []string{"perf_event_open"},
Action: specs.ActAllow,
Args: []specs.LinuxSeccompArg{},
})
}
}

Expand Down

0 comments on commit 96929a5

Please sign in to comment.