| 1 | # Copyright 1999-2006 Gentoo Foundation |
1 | # Copyright 1999-2006 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/pax-utils.eclass,v 1.7 2007/05/07 09:24:16 kevquinn Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/pax-utils.eclass,v 1.8 2008/07/07 16:48:45 betelgeuse Exp $ |
| 4 | |
4 | |
| 5 | # Author: |
5 | # Author: |
| 6 | # Kevin F. Quinn <kevquinn@gentoo.org> |
6 | # Kevin F. Quinn <kevquinn@gentoo.org> |
| 7 | # |
7 | # |
| 8 | # This eclass provides support for manipulating PaX markings on ELF |
8 | # This eclass provides support for manipulating PaX markings on ELF |
| … | |
… | |
| 131 | # control what it does. |
131 | # control what it does. |
| 132 | elog "Fallback PaX marking -${flags}" |
132 | elog "Fallback PaX marking -${flags}" |
| 133 | _pax_list_files elog "$@" |
133 | _pax_list_files elog "$@" |
| 134 | scanelf -Xxz ${flags} "$@" |
134 | scanelf -Xxz ${flags} "$@" |
| 135 | elif [[ ${PAX_MARKINGS} != "none" ]]; then |
135 | elif [[ ${PAX_MARKINGS} != "none" ]]; then |
|
|
136 | elog "No tool to mark executables found. If you want them marked for" |
|
|
137 | elog "PaX kernels please install sys-apps/paxctl." |
| 136 | # Out of options! |
138 | # Out of options! |
| 137 | failures="$*" |
139 | failures="$*" |
| 138 | fail=1 |
140 | fail=1 |
| 139 | fi |
141 | fi |
| 140 | if [[ ${fail} == 1 ]]; then |
142 | if [[ ${fail} == 1 ]]; then |