summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-11 17:53:22 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-11 17:53:22 +0000
commitf6e82e2641252362638fb9110f599a2bd73f8de3 (patch)
treeedb1a0abb6e74308f64d3ce8f984343a1dfd6c17 /bin/prepstrip
parentSimplify logic mapping of options to depgraph params (trunk r7206 and r7230). (diff)
downloadportage-multirepo-f6e82e2641252362638fb9110f599a2bd73f8de3.tar.gz
portage-multirepo-f6e82e2641252362638fb9110f599a2bd73f8de3.tar.bz2
portage-multirepo-f6e82e2641252362638fb9110f599a2bd73f8de3.zip
remove readable bits for debug files if the souce ELF is setXid (trunk r7210)
svn path=/main/branches/2.1.2/; revision=7232
Diffstat (limited to 'bin/prepstrip')
-rwxr-xr-xbin/prepstrip2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/prepstrip b/bin/prepstrip
index e7b07c7a..bce39689 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}"
}