Skip to content

Commit ae3c77d

Browse files
authored
Enable oci.WithNewPrivileges in privileged mode
1 parent 32a4661 commit ae3c77d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

containerd/containerd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func (d *Driver) createContainer(containerConfig *ContainerConfig, config *TaskC
149149

150150
// Enable privileged mode.
151151
if config.Privileged {
152-
opts = append(opts, oci.WithPrivileged, oci.WithAllDevicesAllowed, oci.WithHostDevices)
152+
opts = append(opts, oci.WithPrivileged, oci.WithAllDevicesAllowed, oci.WithHostDevices, oci.WithNewPrivileges)
153153
}
154154

155155
// WithPidsLimit sets the container's pid limit or maximum

0 commit comments

Comments
 (0)