SHA256
1
0
forked from pool/parkverbot

Accepting request 925353 from home:jsegitz:branches:systemdhardening:utilities

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/925353
OBS-URL: https://build.opensuse.org/package/show/utilities/parkverbot?expand=0&rev=22
This commit is contained in:
Jan Engelhardt 2021-10-15 16:58:47 +00:00 committed by Git OBS Bridge
parent 48f1168b9f
commit 0c3176bfec
3 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,22 @@
Index: parkverbot-1.3/src/parkverbot.service
===================================================================
--- parkverbot-1.3.orig/src/parkverbot.service
+++ parkverbot-1.3/src/parkverbot.service
@@ -2,6 +2,17 @@
Description=Hard disk head parking inhibitor
[Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHome=true
+ProtectHostname=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
EnvironmentFile=/etc/sysconfig/parkverbot
ExecStart=/usr/sbin/parkverbot $PARKVERBOT_DISKS
Restart=on-abort

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Oct 14 10:40:22 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
* harden_parkverbot.service.patch
-------------------------------------------------------------------
Fri Sep 4 13:10:46 UTC 2020 - Jan Engelhardt <jengelh@inai.de>

View File

@ -28,6 +28,7 @@ URL: https://inai.de/projects/parkverbot/
Source: https://inai.de/files/parkverbot/%name-%version.tar.xz
Source2: https://inai.de/files/parkverbot/%name-%version.tar.asc
Source3: %name.keyring
Patch0: harden_parkverbot.service.patch
BuildRequires: pkg-config >= 0.23
BuildRequires: systemd-rpm-macros
BuildRequires: xz