X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=include%2Fimage.mk;h=1977fc84c0436cdffd7779d529ef8ea4e11266c5;hb=59991e53bc8dc750839a041cbcae429f3571ad82;hp=473e391ae4d414f09c0fb9678ece849922890e4f;hpb=bc53008b155b6a834c2a617de91332b6e113a2c3;p=openwrt.git diff --git a/include/image.mk b/include/image.mk index 473e391ae4..1977fc84c0 100644 --- a/include/image.mk +++ b/include/image.mk @@ -142,11 +142,11 @@ endif define Image/mkfs/prepare/default # Use symbolic permissions to avoid clobbering SUID/SGID/sticky bits - - $(FIND) $(TARGET_DIR) -type f -not -perm +0100 -not -name 'ssh_host*' -print0 | $(XARGS) -0 chmod u+rw,g+r,o+r + - $(FIND) $(TARGET_DIR) -type f -not -perm +0100 -not -name 'ssh_host*' -not -name 'shadow' -print0 | $(XARGS) -0 chmod u+rw,g+r,o+r - $(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