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