Collect kernel audit records in journald #579
Reference in New Issue
Block a user
Delete Branch "benvin/journald-audit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
EL drops systemd-journald-audit.socket from journald's Sockets=, so kernel audit records never reach the journal or the victorialogs upload. journald only picks up listen fds at start, so the drop-in needs a restart to apply.
else(disable) branch removes the upload conf but leavesaudit.confbehind → addensure => absentfor the drop-in there, or move the drop-in out of theenableconditional if audit-in-journal is meant to be unconditional.Service['systemd-journald']only exists in the enable branch, so dropin_file's notify collector matches nothing: journald keeps the audit fd (and systemd-journald-audit.socket stays active) until reboot → declareservice {'systemd-journald': ensure => running}outside the if/else (or in both branches), and stopsystemd-journald-audit.socketon disable.service {'systemd-journald':}duplicates the one declared bysystemd::journald(puppet-systemd 8.1.0,systemd::manage_journalddefaults true, not overridden in hieradata;systemd::dropin_filedoesinclude systemdin both branches) → catalog compile fails on every host via profiles::base. Delete the block; the dropin_file collector already notifies the existingService['systemd-journald']with daemon-reload ordered before it.