summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-06-01 13:08:53 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-06-15 14:53:18 +0000
commitca03627a801fbaa0e55d498f05b8ca69addd7266 (patch)
tree05bf383f0554832bae7e3b4a5bbf1ee7ba6b4cb3 /libpod
parent81a7095389f2220aa7b0631f6013a4c03839dbd9 (diff)
downloadpodman-ca03627a801fbaa0e55d498f05b8ca69addd7266.tar.gz
podman-ca03627a801fbaa0e55d498f05b8ca69addd7266.tar.bz2
podman-ca03627a801fbaa0e55d498f05b8ca69addd7266.zip
oci: pass XDG_RUNTIME_DIR down to the OCI runtime
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #871 Approved by: mheon
Diffstat (limited to 'libpod')
-rw-r--r--libpod/oci.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/oci.go b/libpod/oci.go
index 725819b54..db0fd0d16 100644
--- a/libpod/oci.go
+++ b/libpod/oci.go
@@ -302,6 +302,7 @@ func (r *OCIRuntime) createOCIContainer(ctr *Container, cgroupParent string) (er
// 0, 1 and 2 are stdin, stdout and stderr
cmd.Env = append(r.conmonEnv, fmt.Sprintf("_OCI_SYNCPIPE=%d", 3))
cmd.Env = append(cmd.Env, fmt.Sprintf("_OCI_STARTPIPE=%d", 4))
+ cmd.Env = append(cmd.Env, fmt.Sprintf("XDG_RUNTIME_DIR=%s", os.Getenv("XDG_RUNTIME_DIR")))
if notify, ok := os.LookupEnv("NOTIFY_SOCKET"); ok {
cmd.Env = append(cmd.Env, fmt.Sprintf("NOTIFY_SOCKET=%s", notify))
}