diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-10-02 06:06:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-02 06:06:53 -0400 |
commit | 0b7b22243798650841cd9b790809a0a482f4cbcb (patch) | |
tree | 3fd89f7379c3c0a9916f0aac7292d9b287cde43b /pkg/spec/config_linux.go | |
parent | defd427503c2b36d64686b6ef327ce16810855c1 (diff) | |
parent | f0c71168481e525414a38dc3eaf5a027afe2d4e7 (diff) | |
download | podman-0b7b22243798650841cd9b790809a0a482f4cbcb.tar.gz podman-0b7b22243798650841cd9b790809a0a482f4cbcb.tar.bz2 podman-0b7b22243798650841cd9b790809a0a482f4cbcb.zip |
Merge pull request #7877 from baude/compatapipriv
fix compat api privileged and entrypoint code
Diffstat (limited to 'pkg/spec/config_linux.go')
-rw-r--r-- | pkg/spec/config_linux.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/spec/config_linux.go b/pkg/spec/config_linux.go index d03663f12..319cce61f 100644 --- a/pkg/spec/config_linux.go +++ b/pkg/spec/config_linux.go @@ -200,6 +200,9 @@ func getDevices(path string) ([]*configs.Device, error) { } case f.Name() == "console": continue + case f.Mode()&os.ModeSymlink != 0: + // do not add symlink'd devices to privileged devices + continue } device, err := devices.DeviceFromPath(filepath.Join(path, f.Name()), "rwm") if err != nil { |