Merge pull request #6923 from thaJeztah/no_tun
oci: WithDefaultUnixDevices(): remove tun/tap from the default devices
This commit is contained in:
commit
9aa6725078
@ -1192,20 +1192,13 @@ func WithDefaultUnixDevices(_ context.Context, _ Client, _ *containers.Container
|
|||||||
Allow: true,
|
Allow: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
// "dev/ptmx"
|
||||||
Type: "c",
|
Type: "c",
|
||||||
Major: intptr(5),
|
Major: intptr(5),
|
||||||
Minor: intptr(2),
|
Minor: intptr(2),
|
||||||
Access: rwm,
|
Access: rwm,
|
||||||
Allow: true,
|
Allow: true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
// tuntap
|
|
||||||
Type: "c",
|
|
||||||
Major: intptr(10),
|
|
||||||
Minor: intptr(200),
|
|
||||||
Access: rwm,
|
|
||||||
Allow: true,
|
|
||||||
},
|
|
||||||
}...)
|
}...)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user