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:
parent
48f1168b9f
commit
0c3176bfec
22
harden_parkverbot.service.patch
Normal file
22
harden_parkverbot.service.patch
Normal 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
|
@ -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>
|
Fri Sep 4 13:10:46 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ URL: https://inai.de/projects/parkverbot/
|
|||||||
Source: https://inai.de/files/parkverbot/%name-%version.tar.xz
|
Source: https://inai.de/files/parkverbot/%name-%version.tar.xz
|
||||||
Source2: https://inai.de/files/parkverbot/%name-%version.tar.asc
|
Source2: https://inai.de/files/parkverbot/%name-%version.tar.asc
|
||||||
Source3: %name.keyring
|
Source3: %name.keyring
|
||||||
|
Patch0: harden_parkverbot.service.patch
|
||||||
BuildRequires: pkg-config >= 0.23
|
BuildRequires: pkg-config >= 0.23
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user