Accepting request 934122 from Base:System
OBS-URL: https://build.opensuse.org/request/show/934122 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tgt?expand=0&rev=38
This commit is contained in:
commit
d8dadb58e3
20
harden_tgtd.service.patch
Normal file
20
harden_tgtd.service.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
Index: tgt-1.0.74/scripts/tgtd.service
|
||||||
|
===================================================================
|
||||||
|
--- tgt-1.0.74.orig/scripts/tgtd.service
|
||||||
|
+++ tgt-1.0.74/scripts/tgtd.service
|
||||||
|
@@ -9,6 +9,15 @@ After=network.target
|
||||||
|
ConditionPathExists=/etc/tgt/targets.conf
|
||||||
|
|
||||||
|
[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
|
||||||
|
+ProtectKernelLogs=true
|
||||||
|
+RestrictRealtime=true
|
||||||
|
+# end of automatic additions
|
||||||
|
Type=forking
|
||||||
|
Environment=TGTD_CONFIG=/etc/tgt/targets.conf
|
||||||
|
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 24 15:09:05 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
|
||||||
|
|
||||||
|
- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
|
||||||
|
* harden_tgtd.service.patch
|
||||||
|
Modified:
|
||||||
|
* tgtd.service
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jul 26 12:21:06 UTC 2019 - matthias.gerstner@suse.com
|
Fri Jul 26 12:21:06 UTC 2019 - matthias.gerstner@suse.com
|
||||||
|
|
||||||
|
2
tgt.spec
2
tgt.spec
@ -35,6 +35,7 @@ Patch1: %{name}-fix-build
|
|||||||
Patch2: setup-tgt-conf-d.patch
|
Patch2: setup-tgt-conf-d.patch
|
||||||
Patch3: %{name}-include-sys-macros-for-major.patch
|
Patch3: %{name}-include-sys-macros-for-major.patch
|
||||||
Patch4: %{name}-Fix-gcc7-string-truncation-warnings.patch
|
Patch4: %{name}-Fix-gcc7-string-truncation-warnings.patch
|
||||||
|
Patch5: harden_tgtd.service.patch
|
||||||
BuildRequires: docbook-xsl-stylesheets
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
BuildRequires: libaio-devel
|
BuildRequires: libaio-devel
|
||||||
BuildRequires: libxslt
|
BuildRequires: libxslt
|
||||||
@ -59,6 +60,7 @@ user-space daemon and tools (i.e. they completely runs in user space).
|
|||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
|
%patch5 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifarch ppc ppc64 ppc64le
|
%ifarch ppc ppc64 ppc64le
|
||||||
|
@ -3,6 +3,15 @@ Description=tgt admin
|
|||||||
After=network.target
|
After=network.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
|
||||||
|
ProtectKernelTunables=true
|
||||||
|
ProtectKernelLogs=true
|
||||||
|
RestrictRealtime=true
|
||||||
|
# end of automatic additions
|
||||||
EnvironmentFile=-/etc/sysconfig/tgt
|
EnvironmentFile=-/etc/sysconfig/tgt
|
||||||
Type=forking
|
Type=forking
|
||||||
User=root
|
User=root
|
||||||
|
Loading…
Reference in New Issue
Block a user