From: Rachid Koucha <47061324+Rachid-Koucha@users.noreply.github.com> Date: Wed, 5 Jun 2019 11:04:11 +0000 (+0200) Subject: Make /tmp accessible to any user X-Git-Tag: lxc-3.2.0~38^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a725bbc4b7637c54bbf29f6c7bf03996bb7bdb1c;p=thirdparty%2Flxc.git Make /tmp accessible to any user /tmp created with "rwxrwxrwt" mode Signed-off-by: Rachid Koucha --- diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in index 0d5d9ccf1..c9f39872e 100644 --- a/templates/lxc-busybox.in +++ b/templates/lxc-busybox.in @@ -99,6 +99,9 @@ ${rootfs}/usr/lib64" mknod -m 666 "${rootfs}/dev/zero" c 1 5 || res=1 mknod -m 666 "${rootfs}/dev/urandom" c 1 9 || res=1 fi + + # make /tmp accessible to any user (with sticky bit) + chmod 1777 "${rootfs}/tmp" || return 1 # root user defined cat <> "${rootfs}/etc/passwd"