Skip to content

Commit 4390751

Browse files
committed
adding support of CAP_BPF and CAP_PERFMON
Signed-off-by: Henry Wang <[email protected]>
1 parent 0fd000f commit 4390751

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

contrib/seccomp/seccomp_default.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,18 @@ func DefaultProfile(sp *specs.Spec) *specs.LinuxSeccomp {
671671
Action: specs.ActAllow,
672672
Args: []specs.LinuxSeccompArg{},
673673
})
674+
case "CAP_BPF":
675+
s.Syscalls = append(s.Syscalls, specs.LinuxSyscall{
676+
Names: []string{"bpf"},
677+
Action: specs.ActAllow,
678+
Args: []specs.LinuxSeccompArg{},
679+
})
680+
case "CAP_PERFMON":
681+
s.Syscalls = append(s.Syscalls, specs.LinuxSyscall{
682+
Names: []string{"perf_event_open"},
683+
Action: specs.ActAllow,
684+
Args: []specs.LinuxSeccompArg{},
685+
})
674686
}
675687
}
676688

0 commit comments

Comments
 (0)