[OpenWrt-Devel] [PATCH] ipkg-build: add ogargs to outer tar/ipk

Dirk Neukirchen dirkneukirchen at web.de
Mon Aug 31 01:22:59 EDT 2015


prevent name:uid leaks of build system

Signed-off-by: Dirk Neukirchen <dirkneukirchen at web.de>
---
 requires "include/image.mk: make tar reproducible"


 scripts/ipkg-build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/ipkg-build b/scripts/ipkg-build
index f9d00af..fb1321a 100755
--- a/scripts/ipkg-build
+++ b/scripts/ipkg-build
@@ -152,7 +152,7 @@ echo "2.0" > $tmp_dir/debian-binary
 
 pkg_file=$dest_dir/${pkg}_${version}_${arch}.ipk
 rm -f $pkg_file
-( cd $tmp_dir && $TAR --format=gnu --sort=name -zcf $pkg_file --mtime="$TIMESTAMP" ./debian-binary ./data.tar.gz ./control.tar.gz )
+( cd $tmp_dir && $TAR $ogargs --format=gnu --sort=name -zcf $pkg_file --mtime="$TIMESTAMP" ./debian-binary ./data.tar.gz ./control.tar.gz )
 
 rm $tmp_dir/debian-binary $tmp_dir/data.tar.gz $tmp_dir/control.tar.gz
 rmdir $tmp_dir
-- 
2.5.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list