Accepting request 932182 from home:jsegitz:branches:systemdhardening:Virtualization
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/932182 OBS-URL: https://build.opensuse.org/package/show/Virtualization/sanlock?expand=0&rev=67
This commit is contained in:
parent
728dc4e053
commit
28c58ae561
22
harden_fence_sanlockd.service.patch
Normal file
22
harden_fence_sanlockd.service.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Index: sanlock-3.8.4/init.d/fence_sanlockd.service
|
||||||
|
===================================================================
|
||||||
|
--- sanlock-3.8.4.orig/init.d/fence_sanlockd.service
|
||||||
|
+++ sanlock-3.8.4/init.d/fence_sanlockd.service
|
||||||
|
@@ -4,6 +4,17 @@ After=syslog.target wdmd.service sanlock
|
||||||
|
Before=corosync.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
|
||||||
|
+ProtectKernelModules=true
|
||||||
|
+ProtectKernelLogs=true
|
||||||
|
+ProtectControlGroups=true
|
||||||
|
+RestrictRealtime=true
|
||||||
|
+# end of automatic additions
|
||||||
|
Type=forking
|
||||||
|
ExecStart=/usr/lib/systemd/systemd-fence_sanlockd start
|
||||||
|
ExecStop=/usr/lib/systemd/systemd-fence_sanlockd stop
|
22
harden_sanlk-resetd.service.patch
Normal file
22
harden_sanlk-resetd.service.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Index: sanlock-3.8.4/init.d/sanlk-resetd.service
|
||||||
|
===================================================================
|
||||||
|
--- sanlock-3.8.4.orig/init.d/sanlk-resetd.service
|
||||||
|
+++ sanlock-3.8.4/init.d/sanlk-resetd.service
|
||||||
|
@@ -4,6 +4,17 @@ After=wdmd.service sanlock.service
|
||||||
|
Requires=wdmd.service sanlock.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
|
||||||
|
+ProtectKernelModules=true
|
||||||
|
+ProtectKernelLogs=true
|
||||||
|
+ProtectControlGroups=true
|
||||||
|
+RestrictRealtime=true
|
||||||
|
+# end of automatic additions
|
||||||
|
Type=forking
|
||||||
|
ExecStart=/usr/sbin/sanlk-resetd
|
||||||
|
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 16 14:08:25 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
|
||||||
|
|
||||||
|
- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
|
||||||
|
* harden_fence_sanlockd.service.patch
|
||||||
|
* harden_sanlk-resetd.service.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jun 9 19:58:35 UTC 2021 - James Fehlig <jfehlig@suse.com>
|
Wed Jun 9 19:58:35 UTC 2021 - James Fehlig <jfehlig@suse.com>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file
|
# spec file for package sanlock
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
@ -62,6 +62,8 @@ Patch100: sanlock-SCHED_RESET_ON_FORK-undefined.patch
|
|||||||
Patch101: sanlock-python-prefix.patch
|
Patch101: sanlock-python-prefix.patch
|
||||||
Patch102: suse-systemd.patch
|
Patch102: suse-systemd.patch
|
||||||
Patch103: suse-no-date-time.patch
|
Patch103: suse-no-date-time.patch
|
||||||
|
Patch104: harden_fence_sanlockd.service.patch
|
||||||
|
Patch105: harden_sanlk-resetd.service.patch
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: libaio-devel
|
BuildRequires: libaio-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
@ -141,6 +143,8 @@ common sanlock lockspace.
|
|||||||
%patch101
|
%patch101
|
||||||
%patch102 -p1
|
%patch102 -p1
|
||||||
%patch103 -p1
|
%patch103 -p1
|
||||||
|
%patch104 -p1
|
||||||
|
%patch105 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if ! %{with python}
|
%if ! %{with python}
|
||||||
|
Loading…
Reference in New Issue
Block a user