From cf555c5da3d91772fae2d3eb6faaaea3a309e77e Mon Sep 17 00:00:00 2001 From: Ned Ludd Date: Mon, 9 Jul 2007 18:10:15 +0000 Subject: - remove readable bits for debug files if the souce ELF is setXid svn path=/main/trunk/; revision=7210 --- bin/prepstrip | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin/prepstrip') diff --git a/bin/prepstrip b/bin/prepstrip index e7b07c7aa..bce396899 100755 --- a/bin/prepstrip +++ b/bin/prepstrip @@ -50,6 +50,8 @@ save_elf_debug() { mkdir -p $(dirname "${y}") ${OBJCOPY} --only-keep-debug "${x}" "${y}" ${OBJCOPY} --add-gnu-debuglink="${y}" "${x}" + [ -g "${x}" ] && chmod go-r "${y}" + [ -u "${x}" ] && chmod go-r "${y}" chmod a-x,o-w "${y}" } -- cgit v1.2.3-1-g7c22