|
|
e3c68b |
From eb37a3b57415d2d4206ecdd2db10530366a0d1b1 Mon Sep 17 00:00:00 2001
|
|
|
e3c68b |
From: Anoop C S <anoopcs@redhat.com>
|
|
|
e3c68b |
Date: Fri, 13 Dec 2019 15:20:27 +0530
|
|
|
e3c68b |
Subject: [PATCH 342/344] Revert "hooks: remove selinux hooks"
|
|
|
e3c68b |
|
|
|
e3c68b |
This reverts commit 421743b7cfa6a249544f6abb4cca5a612bd20ea1.
|
|
|
e3c68b |
|
|
|
e3c68b |
Note:- We are not bringing back features.selinux but just the hooks for
|
|
|
e3c68b |
setting SELinux context on bricks
|
|
|
e3c68b |
|
|
|
e3c68b |
Label: DOWNSTREAM ONLY
|
|
|
e3c68b |
|
|
|
e3c68b |
Change-Id: Iccc10428361cac59b294e1d7aa1ba8187c20029e
|
|
|
e3c68b |
BUG: 1686800
|
|
|
e3c68b |
Signed-off-by: Anoop C S <anoopcs@redhat.com>
|
|
|
e3c68b |
Reviewed-on: https://code.engineering.redhat.com/gerrit/187691
|
|
|
e3c68b |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
e3c68b |
Reviewed-by: Niels de Vos <ndevos@redhat.com>
|
|
|
e3c68b |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
e3c68b |
---
|
|
|
e3c68b |
configure.ac | 4 ++++
|
|
|
e3c68b |
extras/hook-scripts/Makefile.am | 2 +-
|
|
|
e3c68b |
extras/hook-scripts/create/Makefile.am | 1 +
|
|
|
e3c68b |
extras/hook-scripts/create/post/Makefile.am | 6 ++++++
|
|
|
e3c68b |
extras/hook-scripts/delete/Makefile.am | 1 +
|
|
|
e3c68b |
extras/hook-scripts/delete/pre/Makefile.am | 6 ++++++
|
|
|
e3c68b |
glusterfs.spec.in | 2 ++
|
|
|
e3c68b |
7 files changed, 21 insertions(+), 1 deletion(-)
|
|
|
e3c68b |
create mode 100644 extras/hook-scripts/create/Makefile.am
|
|
|
e3c68b |
create mode 100644 extras/hook-scripts/create/post/Makefile.am
|
|
|
e3c68b |
create mode 100644 extras/hook-scripts/delete/Makefile.am
|
|
|
e3c68b |
create mode 100644 extras/hook-scripts/delete/pre/Makefile.am
|
|
|
e3c68b |
|
|
|
e3c68b |
diff --git a/configure.ac b/configure.ac
|
|
|
e3c68b |
index 327733e..98ee311 100644
|
|
|
e3c68b |
--- a/configure.ac
|
|
|
e3c68b |
+++ b/configure.ac
|
|
|
e3c68b |
@@ -221,6 +221,10 @@ AC_CONFIG_FILES([Makefile
|
|
|
e3c68b |
extras/hook-scripts/add-brick/Makefile
|
|
|
e3c68b |
extras/hook-scripts/add-brick/pre/Makefile
|
|
|
e3c68b |
extras/hook-scripts/add-brick/post/Makefile
|
|
|
e3c68b |
+ extras/hook-scripts/create/Makefile
|
|
|
e3c68b |
+ extras/hook-scripts/create/post/Makefile
|
|
|
e3c68b |
+ extras/hook-scripts/delete/Makefile
|
|
|
e3c68b |
+ extras/hook-scripts/delete/pre/Makefile
|
|
|
e3c68b |
extras/hook-scripts/start/Makefile
|
|
|
e3c68b |
extras/hook-scripts/start/post/Makefile
|
|
|
e3c68b |
extras/hook-scripts/set/Makefile
|
|
|
e3c68b |
diff --git a/extras/hook-scripts/Makefile.am b/extras/hook-scripts/Makefile.am
|
|
|
e3c68b |
index 771b37e..26059d7 100644
|
|
|
e3c68b |
--- a/extras/hook-scripts/Makefile.am
|
|
|
e3c68b |
+++ b/extras/hook-scripts/Makefile.am
|
|
|
e3c68b |
@@ -1,5 +1,5 @@
|
|
|
e3c68b |
EXTRA_DIST = S40ufo-stop.py S56glusterd-geo-rep-create-post.sh
|
|
|
e3c68b |
-SUBDIRS = add-brick set start stop reset
|
|
|
e3c68b |
+SUBDIRS = add-brick create delete set start stop reset
|
|
|
e3c68b |
|
|
|
e3c68b |
scriptsdir = $(GLUSTERD_WORKDIR)/hooks/1/gsync-create/post/
|
|
|
e3c68b |
if USE_GEOREP
|
|
|
e3c68b |
diff --git a/extras/hook-scripts/create/Makefile.am b/extras/hook-scripts/create/Makefile.am
|
|
|
e3c68b |
new file mode 100644
|
|
|
e3c68b |
index 0000000..b083a91
|
|
|
e3c68b |
--- /dev/null
|
|
|
e3c68b |
+++ b/extras/hook-scripts/create/Makefile.am
|
|
|
e3c68b |
@@ -0,0 +1 @@
|
|
|
e3c68b |
+SUBDIRS = post
|
|
|
e3c68b |
diff --git a/extras/hook-scripts/create/post/Makefile.am b/extras/hook-scripts/create/post/Makefile.am
|
|
|
e3c68b |
new file mode 100644
|
|
|
e3c68b |
index 0000000..919801a
|
|
|
e3c68b |
--- /dev/null
|
|
|
e3c68b |
+++ b/extras/hook-scripts/create/post/Makefile.am
|
|
|
e3c68b |
@@ -0,0 +1,6 @@
|
|
|
e3c68b |
+EXTRA_DIST = S10selinux-label-brick.sh
|
|
|
e3c68b |
+
|
|
|
e3c68b |
+scriptsdir = $(GLUSTERD_WORKDIR)/hooks/1/create/post/
|
|
|
e3c68b |
+if WITH_SERVER
|
|
|
e3c68b |
+scripts_SCRIPTS = S10selinux-label-brick.sh
|
|
|
e3c68b |
+endif
|
|
|
e3c68b |
diff --git a/extras/hook-scripts/delete/Makefile.am b/extras/hook-scripts/delete/Makefile.am
|
|
|
e3c68b |
new file mode 100644
|
|
|
e3c68b |
index 0000000..c98a05d
|
|
|
e3c68b |
--- /dev/null
|
|
|
e3c68b |
+++ b/extras/hook-scripts/delete/Makefile.am
|
|
|
e3c68b |
@@ -0,0 +1 @@
|
|
|
e3c68b |
+SUBDIRS = pre
|
|
|
e3c68b |
diff --git a/extras/hook-scripts/delete/pre/Makefile.am b/extras/hook-scripts/delete/pre/Makefile.am
|
|
|
e3c68b |
new file mode 100644
|
|
|
e3c68b |
index 0000000..93a6b85
|
|
|
e3c68b |
--- /dev/null
|
|
|
e3c68b |
+++ b/extras/hook-scripts/delete/pre/Makefile.am
|
|
|
e3c68b |
@@ -0,0 +1,6 @@
|
|
|
e3c68b |
+EXTRA_DIST = S10selinux-del-fcontext.sh
|
|
|
e3c68b |
+
|
|
|
e3c68b |
+scriptsdir = $(GLUSTERD_WORKDIR)/hooks/1/delete/pre/
|
|
|
e3c68b |
+if WITH_SERVER
|
|
|
e3c68b |
+scripts_SCRIPTS = S10selinux-del-fcontext.sh
|
|
|
e3c68b |
+endif
|
|
|
e3c68b |
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
|
|
|
e3c68b |
index 1b975b2..012989a 100644
|
|
|
e3c68b |
--- a/glusterfs.spec.in
|
|
|
e3c68b |
+++ b/glusterfs.spec.in
|
|
|
e3c68b |
@@ -1453,6 +1453,7 @@ exit 0
|
|
|
e3c68b |
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/pre/S28Quota-enable-root-xattr-heal.sh
|
|
|
e3c68b |
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create
|
|
|
e3c68b |
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/post
|
|
|
e3c68b |
+ %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/post/S10selinux-label-brick.sh
|
|
|
e3c68b |
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/pre
|
|
|
e3c68b |
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/copy-file
|
|
|
e3c68b |
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/copy-file/post
|
|
|
e3c68b |
@@ -1461,6 +1462,7 @@ exit 0
|
|
|
e3c68b |
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/post
|
|
|
e3c68b |
%{_sharedstatedir}/glusterd/hooks/1/delete/post/S57glusterfind-delete-post
|
|
|
e3c68b |
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/pre
|
|
|
e3c68b |
+ %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/pre/S10selinux-del-fcontext.sh
|
|
|
e3c68b |
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/remove-brick
|
|
|
e3c68b |
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/remove-brick/post
|
|
|
e3c68b |
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/remove-brick/pre
|
|
|
e3c68b |
--
|
|
|
e3c68b |
1.8.3.1
|
|
|
e3c68b |
|