Accepting request 918933 from home:jsegitz:branches:systemdhardening:multimedia:libs

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/918933
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/fluidsynth?expand=0&rev=94
This commit is contained in:
Takashi Iwai 2021-09-14 14:21:34 +00:00 committed by Git OBS Bridge
parent 0f4515c5bb
commit 919eb4aaad
4 changed files with 43 additions and 1 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Sep 14 09:59:43 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
* harden_fluidsynth.service.patch
Modified:
* fluidsynth.service
-------------------------------------------------------------------
Sun Jul 11 17:21:21 UTC 2021 - Tom Mbrt <tom.mbrt@googlemail.com>

View File

@ -4,6 +4,17 @@ Documentation=man:fluidsynth(1)
After=sound.target
[Service]
# added automatically, for details please see
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
ProtectSystem=full
ProtectHome=true
ProtectHostname=true
ProtectClock=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
# end of automatic additions
User=fluidsynth
Group=audio
EnvironmentFile=-/etc/sysconfig/fluidsynth

View File

@ -28,6 +28,7 @@ Source0: https://github.com/FluidSynth/%{name}/archive/v%{version}.tar.gz
Source1: %{name}.conf
Source2: %{name}.service
Source1000: baselibs.conf
Patch0: harden_fluidsynth.service.patch
BuildRequires: cmake >= 3.1.0
BuildRequires: gcc-c++
BuildRequires: ladspa-devel
@ -71,7 +72,7 @@ Group: System/Libraries
This package contains the shared library for Fluidsynth.
%prep
%autosetup
%autosetup -p1
%build
%cmake \

View File

@ -0,0 +1,22 @@
Index: fluidsynth-2.2.2/fluidsynth.service.in
===================================================================
--- fluidsynth-2.2.2.orig/fluidsynth.service.in
+++ fluidsynth-2.2.2/fluidsynth.service.in
@@ -4,6 +4,17 @@ Documentation=man:fluidsynth(1)
After=sound.target
[Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHome=true
+ProtectHostname=true
+ProtectClock=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+# end of automatic additions
Type=notify
NotifyAccess=main
EnvironmentFile=@FLUID_DAEMON_ENV_FILE@