mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-16 14:52:24 +01:00
coreos-kernel: add use flag for controlling audit
This commit is contained in:
parent
942604b564
commit
e9a8f48f31
@ -18,7 +18,7 @@ HOMEPAGE="http://www.kernel.org"
|
|||||||
LICENSE="GPL-2 freedist"
|
LICENSE="GPL-2 freedist"
|
||||||
SLOT="0/${PVR}"
|
SLOT="0/${PVR}"
|
||||||
SRC_URI=""
|
SRC_URI=""
|
||||||
IUSE="selinux"
|
IUSE="audit selinux"
|
||||||
|
|
||||||
DEPEND="=sys-kernel/coreos-sources-${COREOS_SOURCE_VERSION}
|
DEPEND="=sys-kernel/coreos-sources-${COREOS_SOURCE_VERSION}
|
||||||
sys-kernel/bootengine:="
|
sys-kernel/bootengine:="
|
||||||
@ -139,6 +139,10 @@ coreos-kernel_src_prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
coreos-kernel_src_configure() {
|
coreos-kernel_src_configure() {
|
||||||
|
if ! use audit; then
|
||||||
|
sed -i -e '/^CONFIG_CMDLINE=/s/"$/ audit=0"/' \
|
||||||
|
"${KBUILD_OUTPUT}/.config" || die
|
||||||
|
fi
|
||||||
if ! use selinux; then
|
if ! use selinux; then
|
||||||
sed -i -e '/CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE/d' \
|
sed -i -e '/CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE/d' \
|
||||||
"${KBUILD_OUTPUT}/.config" || die
|
"${KBUILD_OUTPUT}/.config" || die
|
||||||
|
|||||||
@ -97,7 +97,7 @@ CONFIG_CRASH_DUMP=y
|
|||||||
CONFIG_KEXEC_JUMP=y
|
CONFIG_KEXEC_JUMP=y
|
||||||
CONFIG_PHYSICAL_ALIGN=0x1000000
|
CONFIG_PHYSICAL_ALIGN=0x1000000
|
||||||
CONFIG_CMDLINE_BOOL=y
|
CONFIG_CMDLINE_BOOL=y
|
||||||
CONFIG_CMDLINE="init=/usr/lib/systemd/systemd rootflags=rw mount.usrflags=ro audit=0"
|
CONFIG_CMDLINE="init=/usr/lib/systemd/systemd rootflags=rw mount.usrflags=ro"
|
||||||
CONFIG_HIBERNATION=y
|
CONFIG_HIBERNATION=y
|
||||||
# CONFIG_ACPI_AC is not set
|
# CONFIG_ACPI_AC is not set
|
||||||
# CONFIG_ACPI_BATTERY is not set
|
# CONFIG_ACPI_BATTERY is not set
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user