SHA256
1
0
forked from pool/parkverbot

- Drop harden_parkverbot.service.patch (merged upstream)

OBS-URL: https://build.opensuse.org/package/show/utilities/parkverbot?expand=0&rev=23
This commit is contained in:
Jan Engelhardt 2021-10-17 19:35:23 +00:00 committed by Git OBS Bridge
parent 0c3176bfec
commit f65cb82fd5
7 changed files with 27 additions and 45 deletions

View File

@ -1,22 +0,0 @@
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,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEI2hsEKRWkb56QlEJ1jiBgfNaCTgFAl9SOg8ACgkQ1jiBgfNa
CThCag//coRNc45+RfjAYRy6/KX50BNvQnxjNuhxG5O+38eEs+MVdzeQj3ouAd8x
MemP+hxNYbkF1htMxt/vMVsyabpmSjfaEGDySsSYBY3NSkYz2Uodqz/nY+PS4PpY
TgdcA1qI3l5L3mLNzwDzl0HJpMo9uSuCZFT8qzibrHhCUJ4DKR/XCLk5To9ngTAJ
OgQ6xzWmhv3n9YsvaWYwZor0Jwqg/+AhN90XI0dyOH9C8s95iM6uYDq/KkCekLsQ
NqOhxtaimfP7vMTi4JMgaaInGWBIl5KEDsTdTePF48F9fL4CVLjBecYeR7YSxxEU
ee1noKarFI54WG3GpvK6hLkjHJCOtSN6GE3lUdQSIuCvxwQaIv0YLKeMEdDT8GN/
wRyjsNVu41Z31j/OopECvh2Cx9bFuKxB3cpn/vz1L3TQJlObHSnoX5B5vg864RRJ
bKGhP4WFbRxwKCDMxI1z70vqzBgYM3n4BAOrdZ3yBDa+BA/saqBlUs4dhKKhpXpX
IVRQm+3cwAIKuzL0Gxsi8/S+xgmnHy6LdsoNNWiM7Yw9SNyA8HB2M1082+8gI/4Y
UJFLjexgmxElzeMRDY/505O2EA76KaTKsbPjP/gEQOrwyOH5gtRWIGJfLt19gpuZ
uMsFsEUM5c/lYkpH63rdsNtiFHjYd3miyedkHwZymzfBKZa08Bs=
=FGdk
-----END PGP SIGNATURE-----

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:721b4e8c87b3751db4d7adf33f24e4b4af88491626e20b5f5e2f42addd45d848
size 74356

16
parkverbot-1.4.tar.asc Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEI2hsEKRWkb56QlEJ1jiBgfNaCTgFAmFsVtcACgkQ1jiBgfNa
CTg8Hw//bwV2Da25wS9YU1zyNxp+iKURjLa+pO9wqSoUReCnzQjd4zWcK5TjADAZ
6Ej3t9DIzGd/CXIlo8iFGIyHeirYROIlgiY9VSMjPOgcuBItfSeDUCIRr25TVnj1
lR0t1GU55FWIloLfTFjZqAorVp/PLSpnHM6Yb/aJENg/6TmPpUz07SYoQPoypws6
wA7Wt6XOxTHaBfUlugmJqWi3Qn24jUAfNMNG71rBU9I9oebuwOZpJEJzmpKTAfUa
kBqzXcYP+HF/A7Ma8dSObHoCgFmg3J5t8K3rwDGNQJdh+VBUu+8iNtesAgZakBb9
npA4n738CdF+YRHgmRCv4UX46B6llPcrQvnty/DOM/hkTRBpWYXY60cy44oy9aGB
Mzqb/KUh8iKXeVnP0bh7ef1Yk4Bdh8Id/3FtmiWKSe2XgiAw0q7CxblweuWtnqwp
8llyrEXWneBrVeGFO9TWpRokfI2Wz7dAG+/6YRX0D5NtHW+o24hle5ORw17CeRlX
zTl7x5MyNmmdVfM8Ag3x731fmmujaZBZoMQI3IG7xUdlgwYZjZDpzkNHqqWdX0sH
A66lsHhtOs1v9DWeboa9UDWhOk2oloR6IRVjALXjAxEBjamicen2YZcJ/mvbJSMy
+QTffp8wwZZrMLNCCOb2Zxgyu/JzclhIOCoznYwZjTO2c+bmm5A=
=tvAA
-----END PGP SIGNATURE-----

3
parkverbot-1.4.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f8a1c2bbcf5821e677e50e59ad8cf281c6750f9410fd87939c7235f045b3afea
size 75460

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Oct 17 17:05:44 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Drop harden_parkverbot.service.patch (merged upstream)
-------------------------------------------------------------------
Thu Oct 14 10:40:22 UTC 2021 - Johannes Segitz <jsegitz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package parkverbot
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +17,7 @@
Name: parkverbot
Version: 1.3
Version: 1.4
Release: 0
Summary: Daemon to prevent hard disk head parking in rotational media
License: GPL-2.0-or-later
@ -28,11 +28,10 @@ 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
BuildRequires: pkgconfig(libHX) >= 3.12
BuildRequires: pkgconfig(libHX) >= 4.2
%description
Modern rotational hard disks have a misfeature involving the regular