oci: DefaultLinuxSpec: use OCI-spec consts for namespaces

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-08-12 18:49:25 +02:00
parent a9e8110fe3
commit 72648f0ba6
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -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.