Merge pull request #6923 from thaJeztah/no_tun

oci: WithDefaultUnixDevices(): remove tun/tap from the default devices
This commit is contained in:
Phil Estes 2022-05-12 14:00:27 +01:00 committed by GitHub
commit 9aa6725078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1192,20 +1192,13 @@ func WithDefaultUnixDevices(_ context.Context, _ Client, _ *containers.Container
Allow: true,
},
{
// "dev/ptmx"
Type: "c",
Major: intptr(5),
Minor: intptr(2),
Access: rwm,
Allow: true,
},
{
// tuntap
Type: "c",
Major: intptr(10),
Minor: intptr(200),
Access: rwm,
Allow: true,
},
}...)
return nil
}