|
|
74b1de |
From 421743b7cfa6a249544f6abb4cca5a612bd20ea1 Mon Sep 17 00:00:00 2001
|
|
|
74b1de |
From: Atin Mukherjee <amukherj@redhat.com>
|
|
|
74b1de |
Date: Tue, 11 Dec 2018 16:21:43 +0530
|
|
|
74b1de |
Subject: [PATCH 23/52] hooks: remove selinux hooks
|
|
|
74b1de |
|
|
|
74b1de |
Label: DOWNSTREAM ONLY
|
|
|
74b1de |
|
|
|
74b1de |
Change-Id: I810466a0ca99ab21f5a8eac8cdffbb18333d10ad
|
|
|
74b1de |
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
74b1de |
Reviewed-on: https://code.engineering.redhat.com/gerrit/135800
|
|
|
74b1de |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
74b1de |
Reviewed-by: Jiffin Thottan <jthottan@redhat.com>
|
|
|
74b1de |
Reviewed-by: Milind Changire <mchangir@redhat.com>
|
|
|
74b1de |
---
|
|
|
74b1de |
configure.ac | 20 --------------------
|
|
|
74b1de |
extras/hook-scripts/Makefile.am | 2 +-
|
|
|
74b1de |
extras/hook-scripts/create/Makefile.am | 1 -
|
|
|
74b1de |
extras/hook-scripts/create/post/Makefile.am | 8 --------
|
|
|
74b1de |
extras/hook-scripts/delete/Makefile.am | 1 -
|
|
|
74b1de |
extras/hook-scripts/delete/pre/Makefile.am | 8 --------
|
|
|
74b1de |
glusterfs.spec.in | 2 --
|
|
|
74b1de |
7 files changed, 1 insertion(+), 41 deletions(-)
|
|
|
74b1de |
delete mode 100644 extras/hook-scripts/create/Makefile.am
|
|
|
74b1de |
delete mode 100644 extras/hook-scripts/create/post/Makefile.am
|
|
|
74b1de |
delete mode 100644 extras/hook-scripts/delete/Makefile.am
|
|
|
74b1de |
delete mode 100644 extras/hook-scripts/delete/pre/Makefile.am
|
|
|
74b1de |
|
|
|
74b1de |
diff --git a/configure.ac b/configure.ac
|
|
|
74b1de |
index 2f341de..0d06f5a 100644
|
|
|
74b1de |
--- a/configure.ac
|
|
|
74b1de |
+++ b/configure.ac
|
|
|
74b1de |
@@ -214,10 +214,6 @@ AC_CONFIG_FILES([Makefile
|
|
|
74b1de |
extras/hook-scripts/add-brick/Makefile
|
|
|
74b1de |
extras/hook-scripts/add-brick/pre/Makefile
|
|
|
74b1de |
extras/hook-scripts/add-brick/post/Makefile
|
|
|
74b1de |
- extras/hook-scripts/create/Makefile
|
|
|
74b1de |
- extras/hook-scripts/create/post/Makefile
|
|
|
74b1de |
- extras/hook-scripts/delete/Makefile
|
|
|
74b1de |
- extras/hook-scripts/delete/pre/Makefile
|
|
|
74b1de |
extras/hook-scripts/start/Makefile
|
|
|
74b1de |
extras/hook-scripts/start/post/Makefile
|
|
|
74b1de |
extras/hook-scripts/set/Makefile
|
|
|
74b1de |
@@ -909,21 +905,6 @@ fi
|
|
|
74b1de |
AM_CONDITIONAL([BUILD_CLOUDSYNC], [test "x$BUILD_CLOUDSYNC" = "xyes"])
|
|
|
74b1de |
dnl end cloudsync section
|
|
|
74b1de |
|
|
|
74b1de |
-dnl SELinux feature enablement
|
|
|
74b1de |
-case $host_os in
|
|
|
74b1de |
- linux*)
|
|
|
74b1de |
- AC_ARG_ENABLE([selinux],
|
|
|
74b1de |
- AC_HELP_STRING([--disable-selinux],
|
|
|
74b1de |
- [Disable SELinux features]),
|
|
|
74b1de |
- [USE_SELINUX="${enableval}"], [USE_SELINUX="yes"])
|
|
|
74b1de |
- ;;
|
|
|
74b1de |
- *)
|
|
|
74b1de |
- USE_SELINUX=no
|
|
|
74b1de |
- ;;
|
|
|
74b1de |
-esac
|
|
|
74b1de |
-AM_CONDITIONAL(USE_SELINUX, test "x${USE_SELINUX}" = "xyes")
|
|
|
74b1de |
-dnl end of SELinux feature enablement
|
|
|
74b1de |
-
|
|
|
74b1de |
AC_CHECK_HEADERS([execinfo.h], [have_backtrace=yes])
|
|
|
74b1de |
if test "x${have_backtrace}" = "xyes"; then
|
|
|
74b1de |
AC_DEFINE(HAVE_BACKTRACE, 1, [define if found backtrace])
|
|
|
74b1de |
@@ -1599,7 +1580,6 @@ echo "XML output : $BUILD_XML_OUTPUT"
|
|
|
74b1de |
echo "Unit Tests : $BUILD_UNITTEST"
|
|
|
74b1de |
echo "Track priv ports : $TRACK_PRIVPORTS"
|
|
|
74b1de |
echo "POSIX ACLs : $BUILD_POSIX_ACLS"
|
|
|
74b1de |
-echo "SELinux features : $USE_SELINUX"
|
|
|
74b1de |
echo "firewalld-config : $BUILD_FIREWALLD"
|
|
|
74b1de |
echo "Events : $BUILD_EVENTS"
|
|
|
74b1de |
echo "EC dynamic support : $EC_DYNAMIC_SUPPORT"
|
|
|
74b1de |
diff --git a/extras/hook-scripts/Makefile.am b/extras/hook-scripts/Makefile.am
|
|
|
74b1de |
index 26059d7..771b37e 100644
|
|
|
74b1de |
--- a/extras/hook-scripts/Makefile.am
|
|
|
74b1de |
+++ b/extras/hook-scripts/Makefile.am
|
|
|
74b1de |
@@ -1,5 +1,5 @@
|
|
|
74b1de |
EXTRA_DIST = S40ufo-stop.py S56glusterd-geo-rep-create-post.sh
|
|
|
74b1de |
-SUBDIRS = add-brick create delete set start stop reset
|
|
|
74b1de |
+SUBDIRS = add-brick set start stop reset
|
|
|
74b1de |
|
|
|
74b1de |
scriptsdir = $(GLUSTERD_WORKDIR)/hooks/1/gsync-create/post/
|
|
|
74b1de |
if USE_GEOREP
|
|
|
74b1de |
diff --git a/extras/hook-scripts/create/Makefile.am b/extras/hook-scripts/create/Makefile.am
|
|
|
74b1de |
deleted file mode 100644
|
|
|
74b1de |
index b083a91..0000000
|
|
|
74b1de |
--- a/extras/hook-scripts/create/Makefile.am
|
|
|
74b1de |
+++ /dev/null
|
|
|
74b1de |
@@ -1 +0,0 @@
|
|
|
74b1de |
-SUBDIRS = post
|
|
|
74b1de |
diff --git a/extras/hook-scripts/create/post/Makefile.am b/extras/hook-scripts/create/post/Makefile.am
|
|
|
74b1de |
deleted file mode 100644
|
|
|
74b1de |
index fd1892e..0000000
|
|
|
74b1de |
--- a/extras/hook-scripts/create/post/Makefile.am
|
|
|
74b1de |
+++ /dev/null
|
|
|
74b1de |
@@ -1,8 +0,0 @@
|
|
|
74b1de |
-EXTRA_DIST = S10selinux-label-brick.sh
|
|
|
74b1de |
-
|
|
|
74b1de |
-scriptsdir = $(GLUSTERD_WORKDIR)/hooks/1/create/post/
|
|
|
74b1de |
-if WITH_SERVER
|
|
|
74b1de |
-if USE_SELINUX
|
|
|
74b1de |
-scripts_SCRIPTS = S10selinux-label-brick.sh
|
|
|
74b1de |
-endif
|
|
|
74b1de |
-endif
|
|
|
74b1de |
diff --git a/extras/hook-scripts/delete/Makefile.am b/extras/hook-scripts/delete/Makefile.am
|
|
|
74b1de |
deleted file mode 100644
|
|
|
74b1de |
index c98a05d..0000000
|
|
|
74b1de |
--- a/extras/hook-scripts/delete/Makefile.am
|
|
|
74b1de |
+++ /dev/null
|
|
|
74b1de |
@@ -1 +0,0 @@
|
|
|
74b1de |
-SUBDIRS = pre
|
|
|
74b1de |
diff --git a/extras/hook-scripts/delete/pre/Makefile.am b/extras/hook-scripts/delete/pre/Makefile.am
|
|
|
74b1de |
deleted file mode 100644
|
|
|
74b1de |
index 4fbfbe7..0000000
|
|
|
74b1de |
--- a/extras/hook-scripts/delete/pre/Makefile.am
|
|
|
74b1de |
+++ /dev/null
|
|
|
74b1de |
@@ -1,8 +0,0 @@
|
|
|
74b1de |
-EXTRA_DIST = S10selinux-del-fcontext.sh
|
|
|
74b1de |
-
|
|
|
74b1de |
-scriptsdir = $(GLUSTERD_WORKDIR)/hooks/1/delete/pre/
|
|
|
74b1de |
-if WITH_SERVER
|
|
|
74b1de |
-if USE_SELINUX
|
|
|
74b1de |
-scripts_SCRIPTS = S10selinux-del-fcontext.sh
|
|
|
74b1de |
-endif
|
|
|
74b1de |
-endif
|
|
|
74b1de |
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
|
|
|
74b1de |
index ec06176..db50b8e 100644
|
|
|
74b1de |
--- a/glusterfs.spec.in
|
|
|
74b1de |
+++ b/glusterfs.spec.in
|
|
|
74b1de |
@@ -1413,7 +1413,6 @@ exit 0
|
|
|
74b1de |
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/pre/S28Quota-enable-root-xattr-heal.sh
|
|
|
74b1de |
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create
|
|
|
74b1de |
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/post
|
|
|
74b1de |
- %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/post/S10selinux-label-brick.sh
|
|
|
74b1de |
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/pre
|
|
|
74b1de |
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/copy-file
|
|
|
74b1de |
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/copy-file/post
|
|
|
74b1de |
@@ -1422,7 +1421,6 @@ exit 0
|
|
|
74b1de |
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/post
|
|
|
74b1de |
%{_sharedstatedir}/glusterd/hooks/1/delete/post/S57glusterfind-delete-post
|
|
|
74b1de |
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/pre
|
|
|
74b1de |
- %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/pre/S10selinux-del-fcontext.sh
|
|
|
74b1de |
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/remove-brick
|
|
|
74b1de |
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/remove-brick/post
|
|
|
74b1de |
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/remove-brick/pre
|
|
|
74b1de |
--
|
|
|
74b1de |
1.8.3.1
|
|
|
74b1de |
|