mirror of
https://git.yoctoproject.org/meta-security
synced 2026-09-23 10:10:19 +00:00
Fix two issues preventing samhain-server (yule) from starting: 1. The compiled-in PID file path /var/run/samhain.pid fails because /var/run is a symlink to /run on systemd-based systems, and samhain's security check rejects symlinks for PID directories. Add SetLockfilePath = /run/yule.pid to yulerc.template, following the same approach used in 0004-Set-the-PID-Lock-path-for-samhain.pid for the standalone/client configuration. 2. The init scripts unconditionally source /etc/default/rcS which does not exist on systemd-based systems, producing a confusing error message. Source it conditionally instead. Signed-off-by: Bin Cao <bin.cao.cn@windriver.com> (adapted against prior 4.5.3 upgrade) Signed-off-by: Scott Murray <scott.murray@konsulko.com>