Accepting request 926699 from home:jsegitz:branches:systemdhardening:Base:System

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/926699
OBS-URL: https://build.opensuse.org/package/show/Base:System/quota?expand=0&rev=69
This commit is contained in:
Danilo Spinella 2021-11-22 10:18:16 +00:00 committed by Git OBS Bridge
parent a15dedb4cc
commit d462a04966
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Oct 21 08:09:16 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Modified:
* quotad.service
-------------------------------------------------------------------
Mon Mar 8 23:43:44 UTC 2021 - Dirk Müller <dmueller@suse.com>

View File

@ -3,6 +3,19 @@ Description=Quota RPC monitor
After=network.target
[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
RestrictRealtime=true
# end of automatic additions
EnvironmentFile=-/run/sysconfig/quotad
ExecStart=/usr/sbin/rpc.rquotad -F ${RQUOTAD_ARGS}
ExecStartPre=-/usr/lib/systemd/scripts/quotad_env.sh