From: Zac Medico Date: Wed, 11 Jul 2007 17:53:22 +0000 (-0000) Subject: remove readable bits for debug files if the souce ELF is setXid (trunk r7210) X-Git-Tag: v2.1.3~61 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f6e82e2641252362638fb9110f599a2bd73f8de3;p=portage.git remove readable bits for debug files if the souce ELF is setXid (trunk r7210) svn path=/main/branches/2.1.2/; revision=7232 --- 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}" }