Browse Source

Allow user 'nobody' to write in /tmp

Make /tmp home directory for user 'nobody'
master
gdm85 5 years ago
parent
commit
db73573b58
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      lxd/busybox-nonroot/Makefile
  2. +1
    -1
      lxd/busybox-nonroot/overlay/etc/passwd

+ 1
- 0
lxd/busybox-nonroot/Makefile View File

@ -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:

+ 1
- 1
lxd/busybox-nonroot/overlay/etc/passwd View File

@ -1 +1 @@
nobody:x:1:1:nobody:/:/bin/sh
nobody:x:1:1:nobody:/tmp:/bin/sh

Loading…
Cancel
Save