diff options
author | Ned Ludd <solar@gentoo.org> | 2007-07-09 18:10:15 +0000 |
---|---|---|
committer | Ned Ludd <solar@gentoo.org> | 2007-07-09 18:10:15 +0000 |
commit | cf555c5da3d91772fae2d3eb6faaaea3a309e77e (patch) | |
tree | c7b6ca2014975f45d22e7041529f10b5a20a283f | |
parent | 7c63db682b14b0f45a2ce79a7db36534545ba85c (diff) | |
download | portage-cf555c5da3d91772fae2d3eb6faaaea3a309e77e.tar.gz portage-cf555c5da3d91772fae2d3eb6faaaea3a309e77e.tar.bz2 portage-cf555c5da3d91772fae2d3eb6faaaea3a309e77e.zip |
- remove readable bits for debug files if the souce ELF is setXid
svn path=/main/trunk/; revision=7210
-rwxr-xr-x | bin/prepstrip | 2 |
1 files changed, 2 insertions, 0 deletions
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}" } |