66ee6dc872
If a target user is asigned a UID (e.g. 1000) that happens to also exist on the build machine, tar will happily store the username for that user. This can be seen by some as potential information disclosure. Instruct tar to just store the numeric uid/gid. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 lines
384 B
Makefile
14 lines
384 B
Makefile
################################################################################
|
|
#
|
|
# tar to archive target filesystem
|
|
#
|
|
################################################################################
|
|
|
|
TAR_OPTS := $(call qstrip,$(BR2_TARGET_ROOTFS_TAR_OPTIONS))
|
|
|
|
define ROOTFS_TAR_CMD
|
|
tar -c$(TAR_OPTS)f $@ --numeric-owner -C $(TARGET_DIR) .
|
|
endef
|
|
|
|
$(eval $(call ROOTFS_TARGET,tar))
|