Accepting request 932192 from home:jsegitz:branches:systemdhardening:multimedia:apps
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/932192 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/shairport-sync?expand=0&rev=23
This commit is contained in:
parent
5f29a62353
commit
fa4ac6272b
22
harden_shairport-sync.service.patch
Normal file
22
harden_shairport-sync.service.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Index: shairport-sync-3.3.8/scripts/shairport-sync.service.in
|
||||||
|
===================================================================
|
||||||
|
--- shairport-sync-3.3.8.orig/scripts/shairport-sync.service.in
|
||||||
|
+++ shairport-sync-3.3.8/scripts/shairport-sync.service.in
|
||||||
|
@@ -7,6 +7,17 @@ Wants=network-online.target
|
||||||
|
After=network.target network-online.target
|
||||||
|
|
||||||
|
[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
|
||||||
|
ExecStart=@prefix@/bin/shairport-sync
|
||||||
|
User=shairport-sync
|
||||||
|
Group=shairport-sync
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 17 08:08:53 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
|
||||||
|
|
||||||
|
- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
|
||||||
|
* harden_shairport-sync.service.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 18 01:55:20 UTC 2021 - Hillwood Yang <hillwood@opensuse.org>
|
Wed Aug 18 01:55:20 UTC 2021 - Hillwood Yang <hillwood@opensuse.org>
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ Source2: README.SUSE
|
|||||||
# PATCH-FIX-OPENSUSE drop-user-config.patch hillwood@opensuse.org -- Move configuring user account to rpm spec.
|
# PATCH-FIX-OPENSUSE drop-user-config.patch hillwood@opensuse.org -- Move configuring user account to rpm spec.
|
||||||
# Move configuring user account to rpm spec.
|
# Move configuring user account to rpm spec.
|
||||||
Patch0: drop-user-config.patch
|
Patch0: drop-user-config.patch
|
||||||
|
Patch1: harden_shairport-sync.service.patch
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: firewall-macros
|
BuildRequires: firewall-macros
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -66,6 +67,7 @@ video or photo streaming.
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
cp %{SOURCE2} .
|
cp %{SOURCE2} .
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -i -f
|
autoreconf -i -f
|
||||||
|
Loading…
x
Reference in New Issue
Block a user