Просмотр исходного кода

image.mk: don't squash file permissions in JFFS2 images

Currently we call mkfs.jffs2 --squash, which will change
both file permissions and owners.

If we have some file with suid bits, it will clear these bits.

Thus it's enough to just squash file owners, by replacing that
argument to --squash-uids.

Signed-off-by: Jonh Wendell <[email protected]>
Signed-off-by: Florian Fainelli <[email protected]>

SVN-Revision: 34397
Florian Fainelli 13 лет назад
Родитель
Сommit
7196f5d7c8
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      include/image.mk

+ 2 - 2
include/image.mk

@@ -18,9 +18,9 @@ KDIR=$(KERNEL_BUILD_DIR)
 IMG_PREFIX:=openwrt-$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET))
 IMG_PREFIX:=openwrt-$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET))
 
 
 ifneq ($(CONFIG_BIG_ENDIAN),)
 ifneq ($(CONFIG_BIG_ENDIAN),)
-  JFFS2OPTS     :=  --pad --big-endian --squash -v
+  JFFS2OPTS     :=  --pad --big-endian --squash-uids -v
 else
 else
-  JFFS2OPTS     :=  --pad --little-endian --squash -v
+  JFFS2OPTS     :=  --pad --little-endian --squash-uids -v
 endif
 endif
 
 
 ifeq ($(CONFIG_JFFS2_RTIME),y)
 ifeq ($(CONFIG_JFFS2_RTIME),y)