mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 06:51:26 +02:00
selinux-policy: do not execute binaries under $ROOT
Run-time binaries must be provided by the SDK, dynamic libraries or the entire architecture may be different under the target $ROOT. I have no idea if selinux can be built cross-architecture though, if not this may need to be revisited with qemu.
This commit is contained in:
parent
8fed02d826
commit
eb258f2da7
@ -40,4 +40,11 @@ DEPEND="
|
||||
sys-fs/cryptsetup
|
||||
dev-rust/cargo
|
||||
"
|
||||
|
||||
# Must match the build-time dependencies listed in selinux-policy-2.eclass
|
||||
DEPEND="${DEPEND}
|
||||
>=sys-apps/checkpolicy-2.0.21
|
||||
>=sys-apps/policycoreutils-2.0.82
|
||||
sys-devel/m4"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
@ -232,7 +232,7 @@ selinux-policy-2_src_compile() {
|
||||
# Parallel builds are broken in 2.20140311-r7 and earlier, bug 530178
|
||||
emake -j1 NAME=$i SHAREDIR="${ROOT}/usr/share/selinux" -C "${S}"/${i} || die "${i} compile failed"
|
||||
else
|
||||
emake NAME=$i BINDIR="${ROOT}/usr/bin" SHAREDIR="${ROOT}/usr/share/selinux" -C "${S}"/${i} || die "${i} compile failed"
|
||||
emake NAME=$i SHAREDIR="${ROOT}/usr/share/selinux" -C "${S}"/${i} || die "${i} compile failed"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user