diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2014-06-08 22:02:23 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-06-09 11:28:57 +0200 |
commit | 3fbd9887b324f7b64a583243bf0a770527cb5f61 (patch) | |
tree | e188ec362ffb182b843d4b5d5d50c0f6465d1c84 /fs/common.mk | |
parent | 54ba2704b07cacacb9247540a660c667fd5ffdd5 (diff) |
filesystems: also chown symlinks
Currently, the symlinks in the generated filesystems will have the
UID of the user running the build, because 'chown' does not change
the ownership of symlinks, by default.
Although the implications are limited, some may not want that UID
to leak in the generated filesystems.
So, use 'chown -h' so even symlinks get properly chowned.
Reported-by: Angelo Dureghello <angelo@barix.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'fs/common.mk')
-rw-r--r-- | fs/common.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/common.mk b/fs/common.mk index 2adaf8ce8..45f88b2a9 100644 --- a/fs/common.mk +++ b/fs/common.mk @@ -70,7 +70,7 @@ $$(BINARIES_DIR)/rootfs.$(1): target-finalize $$(ROOTFS_$(2)_DEPENDENCIES) rm -f $$(FAKEROOT_SCRIPT) rm -f $$(TARGET_DIR_WARNING_FILE) rm -f $(USERS_TABLE) - echo "chown -R 0:0 $$(TARGET_DIR)" >> $$(FAKEROOT_SCRIPT) + echo "chown -h -R 0:0 $$(TARGET_DIR)" >> $$(FAKEROOT_SCRIPT) ifneq ($$(ROOTFS_DEVICE_TABLES),) cat $$(ROOTFS_DEVICE_TABLES) > $$(FULL_DEVICE_TABLE) ifeq ($$(BR2_ROOTFS_DEVICE_CREATION_STATIC),y) |