diff --git a/server/container_create.go b/server/container_create.go index b28498c8..1bea3291 100644 --- a/server/container_create.go +++ b/server/container_create.go @@ -770,6 +770,7 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string, } specgen.SetProcessSelinuxLabel(processLabel) specgen.SetLinuxMountLabel(mountLabel) + specgen.SetProcessNoNewPrivileges(linux.GetSecurityContext().GetNoNewPrivs()) if containerConfig.GetLinux().GetSecurityContext() != nil && !containerConfig.GetLinux().GetSecurityContext().Privileged {