diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-01-27 07:12:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-27 07:12:49 -0500 |
commit | 0d96c46c7c4de3f4464e8d55b6134b9bd082cf34 (patch) | |
tree | 205f09f1f9bf8c456cc9e8ba1b0c53e57848feb3 /pkg | |
parent | 09589fccfdd27478defc3e3e3827265d50fa9e33 (diff) | |
parent | 6336e1ff1e11fa71ce6dce6f1edd51bbedd02aa0 (diff) | |
download | podman-0d96c46c7c4de3f4464e8d55b6134b9bd082cf34.tar.gz podman-0d96c46c7c4de3f4464e8d55b6134b9bd082cf34.tar.bz2 podman-0d96c46c7c4de3f4464e8d55b6134b9bd082cf34.zip |
Merge pull request #13031 from giuseppe/drop-permission-check-privileged-rootless-devices
rootless: drop permission check for devices
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/specgen/generate/config_linux.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/pkg/specgen/generate/config_linux.go b/pkg/specgen/generate/config_linux.go index fe220b9e8..a5772bc6a 100644 --- a/pkg/specgen/generate/config_linux.go +++ b/pkg/specgen/generate/config_linux.go @@ -47,17 +47,6 @@ func addPrivilegedDevices(g *generate.Generator) error { if _, found := mounts[d.Path]; found { continue } - st, err := os.Stat(d.Path) - if err != nil { - if err == unix.EPERM { - continue - } - return err - } - // Skip devices that the user has not access to. - if st.Mode()&0007 == 0 { - continue - } newMounts = append(newMounts, devMnt) } g.Config.Mounts = append(newMounts, g.Config.Mounts...) |