Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 81365 Details for
Bug 117335
Portage should not abort on trivial rpath issues, only on serious ones
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ebuild.sh diff to fix insecure rpaths
ebuild.sh.diff (text/plain), 1005 bytes, created by
Kelly Price
on 2006-03-04 20:49:25 UTC
(
hide
)
Description:
ebuild.sh diff to fix insecure rpaths
Filename:
MIME Type:
Creator:
Kelly Price
Created:
2006-03-04 20:49:25 UTC
Size:
1005 bytes
patch
obsolete
>--- ebuild.sh 2006-03-04 23:23:45.000000000 -0500 >+++ ebuild.sh-new 2006-03-04 23:38:46.000000000 -0500 >@@ -1054,7 +1054,31 @@ > echo " http://bugs.gentoo.org/81745" > echo "${f}" > echo -ne '\a\n' >- die "Insecure binaries detected" >+ if hasq fixrpaths ${FEATURES} && type -p chrpath > /dev/null; then >+ # Try to intelegently fix these files. >+ # Unfortunately, scanelf is no use, and chrpath is the >+ # better tool for the job. >+ xrpath=''; >+ for x in ${f}; do >+ if [ -f "${x}" ]; then >+ # Assume xrpath is assigned and done. >+ echo chrpath -r "${xrpath}" "${x}" >+ else >+ # Fix xrpath >+ xrpath='' >+ for y in ${x//:/ } ; do >+ if [ -n "${y}" -a "${y}" != "${BUILDDIR}" ] ; then >+ xrpath="${xrpath}:${y}" >+ fi >+ done >+ >+ # Remove front colon >+ xrpath=${xrpath/#:/} >+ fi >+ done >+ else >+ die "Insecure binaries detected" >+ fi > fi > > # Check for setid binaries but are not built with BIND_NOW
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 117335
: 81365