summaryrefslogtreecommitdiff
path: root/cmd/podman/pod_create.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-08-12 12:33:28 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-08-12 12:33:28 +0200
commit9e2f9c8b7804cec7ed7bcf595272de976f799ef6 (patch)
tree9b346f4828d79ac689102eb82d031bdae734e8be /cmd/podman/pod_create.go
parent0ecf0aa1b8083fc71ccea88982fcb3a848c2947f (diff)
downloadpodman-9e2f9c8b7804cec7ed7bcf595272de976f799ef6.tar.gz
podman-9e2f9c8b7804cec7ed7bcf595272de976f799ef6.tar.bz2
podman-9e2f9c8b7804cec7ed7bcf595272de976f799ef6.zip
cmd: drop check for euid==0
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd/podman/pod_create.go')
-rw-r--r--cmd/podman/pod_create.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/pod_create.go b/cmd/podman/pod_create.go
index b6154b4db..d04c85dba 100644
--- a/cmd/podman/pod_create.go
+++ b/cmd/podman/pod_create.go
@@ -78,7 +78,7 @@ func podCreateCmd(c *cliconfig.PodCreateValues) error {
if !c.Infra && c.Flag("share").Changed && c.Share != "none" && c.Share != "" {
return errors.Errorf("You cannot share kernel namespaces on the pod level without an infra container")
}
- if c.Flag("pod-id-file").Changed && os.Geteuid() == 0 {
+ if c.Flag("pod-id-file").Changed {
podIdFile, err = util.OpenExclusiveFile(c.PodIDFile)
if err != nil && os.IsExist(err) {
return errors.Errorf("pod id file exists. Ensure another pod is not using it or delete %s", c.PodIDFile)