Skip to content

Commit

Permalink
Merge pull request kubevirt#8751 from akalenyu/scc-seccomp-profiles
Browse files Browse the repository at this point in the history
Add restricted seccomp profile to controller SCC
  • Loading branch information
kubevirt-bot authored Nov 11, 2022
2 parents 6ff2995 + bee300b commit c160338
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/virt-operator/resource/generate/components/scc.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ func NewKubeVirtControllerSCC(namespace string) *secv1.SecurityContextConstraint
scc.SELinuxContext = secv1.SELinuxContextStrategyOptions{
Type: secv1.SELinuxStrategyRunAsAny,
}
scc.SeccompProfiles = []string{
"runtime/default",
}
scc.AllowedCapabilities = []corev1.Capability{
// add CAP_SYS_NICE capability to allow setting cpu affinity
"SYS_NICE",
Expand Down

0 comments on commit c160338

Please sign in to comment.