SHA256
3
0
forked from pool/shadow

Accepting request 932180 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/932180
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=115
This commit is contained in:
Michael Vetter 2021-11-18 13:38:29 +00:00 committed by Git OBS Bridge
parent 2204667d89
commit 815e18bc02
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 16 15:58:46 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Modified:
* shadow.service
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 9 01:39:44 UTC 2021 - Stanislav Brabec <sbrabec@suse.com> Tue Nov 9 01:39:44 UTC 2021 - Stanislav Brabec <sbrabec@suse.com>

View File

@ -2,6 +2,19 @@
Description=Verify integrity of password and group files Description=Verify integrity of password and group files
[Service] [Service]
# added automatically, for details please see
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
ProtectSystem=full
ProtectHome=read-only
PrivateDevices=true
ProtectHostname=true
ProtectClock=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictRealtime=true
# end of automatic additions
Type=oneshot Type=oneshot
ExecStart=/usr/sbin/pwck -r ExecStart=/usr/sbin/pwck -r
ExecStart=/usr/sbin/grpck -r ExecStart=/usr/sbin/grpck -r