Skip to content

[22.06 backport] seccomp: allow "bpf", "perf_event_open", gated by CAP_BPF, CAP_PERFMON#43988

Merged
thaJeztah merged 1 commit into
moby:22.06from
thaJeztah:22.06_backport_seccomp_bpfcap
Aug 18, 2022
Merged

[22.06 backport] seccomp: allow "bpf", "perf_event_open", gated by CAP_BPF, CAP_PERFMON#43988
thaJeztah merged 1 commit into
moby:22.06from
thaJeztah:22.06_backport_seccomp_bpfcap

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

Update the profile to make use of CAP_BPF and CAP_PERFMON capabilities. Prior to
kernel 5.8, bpf and perf_event_open required CAP_SYS_ADMIN. This change enables
finer control of the privilege setting, thus allowing us to run certain system
tracing tools with minimal privileges.

Based on the original patch from Henry Wang in the containerd repository.

(cherry picked from commit 7b7d113)

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Update the profile to make use of CAP_BPF and CAP_PERFMON capabilities. Prior to
kernel 5.8, bpf and perf_event_open required CAP_SYS_ADMIN. This change enables
finer control of the privilege setting, thus allowing us to run certain system
tracing tools with minimal privileges.

Based on the original patch from Henry Wang in the containerd repository.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 7b7d113)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah merged commit 2a33c73 into moby:22.06 Aug 18, 2022
@thaJeztah thaJeztah deleted the 22.06_backport_seccomp_bpfcap branch August 18, 2022 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants