]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Make /tmp accessible to any user 3031/head
authorRachid Koucha <47061324+Rachid-Koucha@users.noreply.github.com>
Wed, 5 Jun 2019 11:04:11 +0000 (13:04 +0200)
committerGitHub <noreply@github.com>
Wed, 5 Jun 2019 11:04:11 +0000 (13:04 +0200)
/tmp created with "rwxrwxrwt" mode

Signed-off-by: Rachid Koucha <rachid.koucha@gmail.com>
templates/lxc-busybox.in

index 0d5d9ccf136980a09a1e268b2e198977b1749a2b..c9f39872e3a04abacfa720827d8ebe3ac69aecc5 100644 (file)
@@ -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 <<EOF >> "${rootfs}/etc/passwd"