skeleton: /etc/fstab: make sure /tmp is world writable and sticky
authorPeter Korsgaard <peter@korsgaard.com>
Fri, 21 Feb 2014 21:30:24 +0000 (22:30 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 21 Feb 2014 21:30:24 +0000 (22:30 +0100)
ramfs (which is used instead of tmpfs if CONFIG_SHMEM isn't enabled in the
kernel configuration), defaults to mode 0755 instead of 01777 like tmpfs
uses.

/tmp should be world writable and sticky, so explictly enforce the mode so
ramfs users gets it correct instead of relying on the defaults.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
system/skeleton/etc/fstab

index a2f56ffa653fd7d26e88420c3c3724c28e123234..e000aadc361c1a14faaa7cbec6a8bb152b86fc3a 100644 (file)
@@ -5,5 +5,5 @@
 proc           /proc          proc     defaults          0      0
 devpts         /dev/pts       devpts   defaults,gid=5,mode=620   0      0
 tmpfs           /dev/shm       tmpfs    mode=0777         0      0
-tmpfs           /tmp           tmpfs    defaults          0      0
+tmpfs           /tmp           tmpfs    mode=1777         0      0
 sysfs          /sys           sysfs    defaults          0      0