#1032327 auditd: should have support for systemd security features

Package:
auditd
Source:
auditd
Description:
User space tools for security auditing
Submitter:
Russell Coker
Date:
2023-03-04 03:57:04 UTC
Severity:
normal
Tags:
#1032327#5
Date:
2023-03-04 03:53:56 UTC
From:
To:
In my tests the following systemd security settings allow auditd to do
everything it needs to do in a default configuration.  While the freeze is
getting close this is a simple thing to test and we should be able to get
most of these settings tested well enough before the release.

[Service]
CapabilityBoundingSet=CAP_AUDIT_CONTROL CAP_AUDIT_WRITE CAP_CHOWN CAP_FSETID CAP_NET_BIND_SERVICE CAP_SYS_NICE CAP_SYS_RESOURCE
ProtectSystem=true
ProtectProc=invisible
SystemCallArchitectures=native
DevicePolicy=closed
UMask=077
NoNewPrivileges=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectSystem=true
ProtectHome=true
PrivateTmp=true
ProtectHostname=true
LockPersonality=true
RestrictRealtime=true
RestrictSUIDSGID=true
# needs @resources and @privileged syscall groups
SystemCallFilter=~@mount @cpu-emulation @debug @raw-io @reboot @swap @module @obsolete @clock
ProtectClock=true
RestrictNamespaces=true
ProtectKernelTunables=true
PrivateDevices=true
PrivateNetwork=true
RestrictAddressFamilies=~AF_(INET|INET6)