diff --git a/oci/defaults.go b/oci/defaults.go index 03afad4c62..6170401b1f 100644 --- a/oci/defaults.go +++ b/oci/defaults.go @@ -122,11 +122,11 @@ func DefaultLinuxSpec() specs.Spec { "/proc/sysrq-trigger", }, Namespaces: []specs.LinuxNamespace{ - {Type: "mount"}, - {Type: "network"}, - {Type: "uts"}, - {Type: "pid"}, - {Type: "ipc"}, + {Type: specs.MountNamespace}, + {Type: specs.NetworkNamespace}, + {Type: specs.UTSNamespace}, + {Type: specs.PIDNamespace}, + {Type: specs.IPCNamespace}, }, // Devices implicitly contains the following devices: // null, zero, full, random, urandom, tty, console, and ptmx.