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:
parent
0f4515c5bb
commit
919eb4aaad
@ -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>
|
Sun Jul 11 17:21:21 UTC 2021 - Tom Mbrt <tom.mbrt@googlemail.com>
|
||||||
|
|
||||||
|
@ -4,6 +4,17 @@ Documentation=man:fluidsynth(1)
|
|||||||
After=sound.target
|
After=sound.target
|
||||||
|
|
||||||
[Service]
|
[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
|
User=fluidsynth
|
||||||
Group=audio
|
Group=audio
|
||||||
EnvironmentFile=-/etc/sysconfig/fluidsynth
|
EnvironmentFile=-/etc/sysconfig/fluidsynth
|
||||||
|
@ -28,6 +28,7 @@ Source0: https://github.com/FluidSynth/%{name}/archive/v%{version}.tar.gz
|
|||||||
Source1: %{name}.conf
|
Source1: %{name}.conf
|
||||||
Source2: %{name}.service
|
Source2: %{name}.service
|
||||||
Source1000: baselibs.conf
|
Source1000: baselibs.conf
|
||||||
|
Patch0: harden_fluidsynth.service.patch
|
||||||
BuildRequires: cmake >= 3.1.0
|
BuildRequires: cmake >= 3.1.0
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: ladspa-devel
|
BuildRequires: ladspa-devel
|
||||||
@ -71,7 +72,7 @@ Group: System/Libraries
|
|||||||
This package contains the shared library for Fluidsynth.
|
This package contains the shared library for Fluidsynth.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake \
|
%cmake \
|
||||||
|
22
harden_fluidsynth.service.patch
Normal file
22
harden_fluidsynth.service.patch
Normal 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@
|
Loading…
Reference in New Issue
Block a user