mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 08:56:58 +02:00
eclass/pax-utils: Sync with gentoo
It's from gentoo commit 84b43bac4e545999e00c768bbcc908652eaf5502.
This commit is contained in:
parent
d6edbe5c5d
commit
b4d6d2916e
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2019 Gentoo Foundation
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: pax-utils.eclass
|
||||
@ -7,6 +7,7 @@
|
||||
# @AUTHOR:
|
||||
# Author: Kevin F. Quinn <kevquinn@gentoo.org>
|
||||
# Author: Anthony G. Basile <blueness@gentoo.org>
|
||||
# @SUPPORTED_EAPIS: 5 6 7 8
|
||||
# @BLURB: functions to provide PaX markings for hardened kernels
|
||||
# @DESCRIPTION:
|
||||
#
|
||||
@ -20,6 +21,11 @@
|
||||
# To control what markings are made, set PAX_MARKINGS in /etc/portage/make.conf
|
||||
# to contain either "PT", "XT" or "none". The default is none
|
||||
|
||||
case ${EAPI:-0} in
|
||||
5|6|7|8) ;;
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ -z ${_PAX_UTILS_ECLASS} ]]; then
|
||||
_PAX_UTILS_ECLASS=1
|
||||
|
||||
@ -176,6 +182,10 @@ host-is-pax() {
|
||||
# them elsewhere as they are not supported (i.e. they may be removed
|
||||
# or their function may change arbitrarily).
|
||||
|
||||
# @FUNCTION: _pax_list_files
|
||||
# @INTERNAL
|
||||
# @USAGE: <command to display items> [items]
|
||||
# @DESCRIPTION:
|
||||
# Display a list of things, one per line, indented a bit, using the
|
||||
# display command in $1.
|
||||
_pax_list_files() {
|
||||
|
Loading…
Reference in New Issue
Block a user