mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-15 22:31:59 +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"
|
||||
SLOT="0/${PVR}"
|
||||
SRC_URI=""
|
||||
IUSE="selinux"
|
||||
IUSE="audit selinux"
|
||||
|
||||
DEPEND="=sys-kernel/coreos-sources-${COREOS_SOURCE_VERSION}
|
||||
sys-kernel/bootengine:="
|
||||
@ -139,6 +139,10 @@ coreos-kernel_src_prepare() {
|
||||
}
|
||||
|
||||
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
|
||||
sed -i -e '/CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE/d' \
|
||||
"${KBUILD_OUTPUT}/.config" || die
|
||||
|
||||
@ -97,7 +97,7 @@ CONFIG_CRASH_DUMP=y
|
||||
CONFIG_KEXEC_JUMP=y
|
||||
CONFIG_PHYSICAL_ALIGN=0x1000000
|
||||
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_ACPI_AC is not set
|
||||
# CONFIG_ACPI_BATTERY is not set
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user