aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-07-01 11:48:54 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-07-01 11:48:54 +0000
commit3d25196097c1fc4ff437f0d1cf5c62069111ecdb (patch)
treee79ac2c1b560cbe7e97c80f91d3a64c31575bc2e
parentcd2bdeddc5ca45883a83d42c683c4d46b059f963 (diff)
downloadupstream-3d25196097c1fc4ff437f0d1cf5c62069111ecdb.tar.gz
upstream-3d25196097c1fc4ff437f0d1cf5c62069111ecdb.tar.bz2
upstream-3d25196097c1fc4ff437f0d1cf5c62069111ecdb.zip
include/image.mk: /tmp should have mode 1777
On the off chance that the root filesystem's /tmp is used directly as a temporary directory instead of having a tmpfs mounted over it, it should have the sticky bit set. Signed-off-by: Mark Mentovai <mark@moxienet.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32572 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--include/image.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/image.mk b/include/image.mk
index b0d6dfae61..1977fc84c0 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -146,7 +146,7 @@ define Image/mkfs/prepare/default
- $(FIND) $(TARGET_DIR) -type f -perm +0100 -print0 | $(XARGS) -0 chmod u+rwx,g+rx,o+rx
- $(FIND) $(TARGET_DIR) -type d -print0 | $(XARGS) -0 chmod u+rwx,g+rx,o+rx
$(INSTALL_DIR) $(TARGET_DIR)/tmp
- chmod 0777 $(TARGET_DIR)/tmp
+ chmod 1777 $(TARGET_DIR)/tmp
endef
define Image/mkfs/prepare