Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conf/distro/include/omnect-os-kernel.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ OMNECT_KERNEL_SRC_URI_LTE = " \
"

OMNECT_KERNEL_SRC_URI = " \
file://audit.cfg \
file://cpu_freq_default_gov_schedutil.cfg \
file://enable-overlayfs.cfg \
file://enable-cifs.cfg \
Expand Down
8 changes: 3 additions & 5 deletions recipes-core/systemd/systemd_%.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@ do_install:append() {
[ -n "${JOURNALD_RuntimeMaxFiles}" ] && sed -i 's/^#RuntimeMaxFiles=/RuntimeMaxFiles=${JOURNALD_RuntimeMaxFiles} /' ${D}${sysconfdir}/systemd/journald.conf
[ -n "${JOURNALD_ForwardToSyslog}" ] && sed -i -E 's/^#ForwardToSyslog=(.*)/ForwardToSyslog=${JOURNALD_ForwardToSyslog} /' ${D}${sysconfdir}/systemd/journald.conf

# delete systemd-journald-audit.socket if audit is not in DISTRO_FEATURES
if ${@bb.utils.contains('DISTRO_FEATURES', 'audit', 'false', 'true', d)}; then
rm -f ${D}${systemd_system_unitdir}/sockets.target.wants/systemd-journald-audit.socket
rm -f ${D}${systemd_system_unitdir}/systemd-journald-audit.socket
fi
# delete systemd-journald-audit.socket - we don't use this feature (yet)
rm -f ${D}${systemd_system_unitdir}/sockets.target.wants/systemd-journald-audit.socket
rm -f ${D}${systemd_system_unitdir}/systemd-journald-audit.socket

# sync time on sysinit
install -d ${D}${sysconfdir}/systemd/system/sysinit.target.wants
Expand Down
7 changes: 7 additions & 0 deletions recipes-kernel/linux/files/audit.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CONFIG_AUDIT=y
CONFIG_AUDITSYSCALL=y
CONFIG_SECURITY_NETWORK=y
# AUDIT option might depend on APPARMOR option so enable it; but keep DAC as
# default
CONFIG_SECURITY_APPARMOR=y
CONFIG_DEFAULT_SECURITY_DAC=y
Loading