Dirk Mueller
cb9ae4efcd
Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort OBS-URL: https://build.opensuse.org/request/show/908800 OBS-URL: https://build.opensuse.org/package/show/Base:System/acct?expand=0&rev=64
25 lines
605 B
Desktop File
25 lines
605 B
Desktop File
[Unit]
|
|
Description=Process accounting
|
|
Documentation=man:accton(8)
|
|
|
|
[Service]
|
|
# added automatically, for details please see
|
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
ProtectSystem=full
|
|
ProtectHome=true
|
|
PrivateDevices=true
|
|
ProtectHostname=true
|
|
ProtectClock=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelLogs=true
|
|
ProtectControlGroups=true
|
|
Type=oneshot
|
|
RemainAfterExit=true
|
|
ExecStartPre=/usr/bin/chmod 600 /var/log/account/pacct
|
|
ExecStart=/usr/sbin/accton /var/log/account/pacct
|
|
ExecStop=/usr/sbin/accton off
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|