coreos-kernel: add use flag for controlling audit

This commit is contained in:
Michael Marineau 2015-07-29 19:05:04 -07:00
parent 942604b564
commit e9a8f48f31
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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