summaryrefslogtreecommitdiff
path: root/pkg/spec/spec.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-07-18 19:50:22 +0200
committerGitHub <noreply@github.com>2019-07-18 19:50:22 +0200
commit2254a35d3a61c6d0793b8d6994698ab5bad1d6ac (patch)
tree241a88f597c90da1a54df2406c4d9f3d8edd1455 /pkg/spec/spec.go
parent1065548f9134e0e02bc6ce947da8c140c1a83040 (diff)
parent350ede1eeb6ab33bce2918d7768b940c255e63c6 (diff)
downloadpodman-2254a35d3a61c6d0793b8d6994698ab5bad1d6ac.tar.gz
podman-2254a35d3a61c6d0793b8d6994698ab5bad1d6ac.tar.bz2
podman-2254a35d3a61c6d0793b8d6994698ab5bad1d6ac.zip
Merge pull request #3593 from giuseppe/rootless-privileged-devices
rootless: add host devices with --privileged
Diffstat (limited to 'pkg/spec/spec.go')
-rw-r--r--pkg/spec/spec.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/spec/spec.go b/pkg/spec/spec.go
index a8ab4911a..824c99025 100644
--- a/pkg/spec/spec.go
+++ b/pkg/spec/spec.go
@@ -264,10 +264,8 @@ func (config *CreateConfig) createConfigToOCISpec(runtime *libpod.Runtime, userM
// If privileged, we need to add all the host devices to the
// spec. We do not add the user provided ones because we are
// already adding them all.
- if !rootless.IsRootless() {
- if err := config.AddPrivilegedDevices(&g); err != nil {
- return nil, err
- }
+ if err := config.AddPrivilegedDevices(&g); err != nil {
+ return nil, err
}
} else {
for _, devicePath := range config.Devices {