mirror of
https://github.com/outbackdingo/ucore.git
synced 2026-01-27 10:20:49 +00:00
fix: auditd failed to start
This commit is contained in:
@@ -38,6 +38,7 @@ RUN sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-os
|
||||
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=60s/' /etc/systemd/user.conf && \
|
||||
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=60s/' /etc/systemd/system.conf && \
|
||||
systemctl enable cockpit.service && \
|
||||
systemctl enable ensure-var-log-audit-dir.service && \
|
||||
systemctl enable rpm-ostreed-automatic.timer && \
|
||||
rm /etc/ssh/sshd_config.d/40-disable-passwords.conf && \
|
||||
cp -a /etc/firewalld/firewalld-server.conf /etc/firewalld/firewalld.conf && \
|
||||
|
||||
10
etc/systemd/system/ensure-var-log-audit-dir.service
Normal file
10
etc/systemd/system/ensure-var-log-audit-dir.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Ensure /var/log/audit is present
|
||||
Before=auditd.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=mkdir -p -m 0700 /var/log/audit
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user