From db73573b587317223c61a5c6161ad3d0eb5183bf Mon Sep 17 00:00:00 2001 From: gdm85 Date: Sat, 26 Sep 2015 10:41:50 +0200 Subject: [PATCH] Allow user 'nobody' to write in /tmp Make /tmp home directory for user 'nobody' --- lxd/busybox-nonroot/Makefile | 1 + lxd/busybox-nonroot/overlay/etc/passwd | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lxd/busybox-nonroot/Makefile b/lxd/busybox-nonroot/Makefile index 2c149ba..15b326b 100644 --- a/lxd/busybox-nonroot/Makefile +++ b/lxd/busybox-nonroot/Makefile @@ -12,6 +12,7 @@ have-busybox: busybox-nonroot.tar.xz: have-busybox TMPD=`mktemp -d` && mkdir -p "$$TMPD/rootfs/etc" && \ cp overlay/etc/passwd overlay/etc/group "$$TMPD/rootfs/etc/" && cd "$$TMPD" && tar xf /var/lib/lxd/images/$(BASEIMG) && \ + chmod go+w /tmp && chmod +x /tmp && \ tar pcfJ $(CURDIR)/$@ rootfs/ metadata.yaml && cd && rm -rf "$$TMPD" import: diff --git a/lxd/busybox-nonroot/overlay/etc/passwd b/lxd/busybox-nonroot/overlay/etc/passwd index d9119cc..e912593 100644 --- a/lxd/busybox-nonroot/overlay/etc/passwd +++ b/lxd/busybox-nonroot/overlay/etc/passwd @@ -1 +1 @@ -nobody:x:1:1:nobody:/:/bin/sh +nobody:x:1:1:nobody:/tmp:/bin/sh