Skip to content

Commit

Permalink
Merge pull request #7268 from thaJeztah/1.6_backport_no_tun
Browse files Browse the repository at this point in the history
[release/1.6 backport] oci: WithDefaultUnixDevices(): remove tun/tap from the default devices
  • Loading branch information
mxpv committed Aug 8, 2022
2 parents 9cd3357 + ed9d3dc commit 026ac1c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions oci/spec_opts.go
Expand Up @@ -1120,20 +1120,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
}
Expand Down

0 comments on commit 026ac1c

Please sign in to comment.