Merge pull request #46208 from thaJeztah/oci_DefaultLinuxSpec_consts

oci: DefaultLinuxSpec: use OCI-spec consts for namespaces
This commit is contained in:
Sebastiaan van Stijn 2023-08-14 10:41:41 +02:00 committed by GitHub
commit cb36f57299
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.