diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-08-12 12:30:17 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-08-12 12:30:20 +0200 |
commit | 0ecf0aa1b8083fc71ccea88982fcb3a848c2947f (patch) | |
tree | cc3922ed4b0bb446c81b13b6d1f2dee0da7ffe39 /pkg/spec | |
parent | dcf20377446a0520da23315869b63d52368f4081 (diff) | |
download | podman-0ecf0aa1b8083fc71ccea88982fcb3a848c2947f.tar.gz podman-0ecf0aa1b8083fc71ccea88982fcb3a848c2947f.tar.bz2 podman-0ecf0aa1b8083fc71ccea88982fcb3a848c2947f.zip |
storage: drop unused geteuid check
it is always running with euid==0 at this point.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/spec')
-rw-r--r-- | pkg/spec/storage.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/pkg/spec/storage.go b/pkg/spec/storage.go index e0bb48a9c..a8dc7f4a8 100644 --- a/pkg/spec/storage.go +++ b/pkg/spec/storage.go @@ -238,11 +238,6 @@ func (config *CreateConfig) parseVolumes(runtime *libpod.Runtime) ([]spec.Mount, // Conflicts are resolved simply - the last container specified wins. // Container names may be suffixed by mount options after a colon. func (config *CreateConfig) getVolumesFrom(runtime *libpod.Runtime) (map[string]spec.Mount, map[string]*libpod.ContainerNamedVolume, error) { - // TODO: This can probably be disabled now - if os.Geteuid() != 0 { - return nil, nil, nil - } - // Both of these are maps of mount destination to mount type. // We ensure that each destination is only mounted to once in this way. finalMounts := make(map[string]spec.Mount) |