Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions internal/config/seccomp/seccomp.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,12 @@ func (c *Config) setupFromField(
log.Debugf(ctx, "Setup seccomp from profile field: %+v", profileField)

if c.IsDisabled() {
if profileField.ProfileType != types.SecurityProfileTypeUnconfined {
if profileField.ProfileType != types.SecurityProfileTypeUnconfined &&
// Kubernetes sandboxes run per default with `SecurityProfileTypeRuntimeDefault`:
// https://github.com/kubernetes/kubernetes/blob/629d5ab/pkg/kubelet/kuberuntime/kuberuntime_sandbox.go#L155-L162
profileField.ProfileType != types.SecurityProfileTypeRuntimeDefault {
return errors.Errorf(
"seccomp is not enabled, cannot run with a profile",
"seccomp is not enabled, cannot run with custom profile",
)
}
log.Warnf(ctx, "seccomp is not enabled, running without profile")
Expand Down