Fabian Deutsch has uploaded a new change for review.

Change subject: Add 03-vdsm-sebool-config handler
......................................................................

Add 03-vdsm-sebool-config handler

Due to some changes the boolenas can not be set during the build of Node
anymore.
The now added hook handler ensures that the relevant booleans are opened
when Node is booted.

Change-Id: Idc95892994ee8760017b5dbd764142dad39a4e8b
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1156038
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1150243
Signed-off-by: Fabian Deutsch <fabi...@fedoraproject.org>
---
M configure.ac
M hooks/Makefile.am
A hooks/on-boot/03-vdsm-sebool-config
M ovirt-node-plugin-vdsm.spec.in
4 files changed, 21 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node-plugin-vdsm 
refs/changes/01/34401/1

diff --git a/configure.ac b/configure.ac
index da26b7e..3a2cfdd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
 define([VERSION_MAJOR], [0])
 define([VERSION_MINOR], [2])
-define([VERSION_FIX], [0])
+define([VERSION_FIX], [1])
 define([VERSION_NUMBER], VERSION_MAJOR[.]VERSION_MINOR[.]VERSION_FIX)
 define([VERSION_SUFFIX], [_ovirt35])
 
diff --git a/hooks/Makefile.am b/hooks/Makefile.am
index d88b771..8497f25 100644
--- a/hooks/Makefile.am
+++ b/hooks/Makefile.am
@@ -25,4 +25,5 @@
 dist_onboot_SCRIPTS = \
        on-boot/01-vdsm-configure \
        on-boot/02-sanlock-check \
+       on-boot/03-vdsm-sebool-config \
        $(NULL)
diff --git a/hooks/on-boot/03-vdsm-sebool-config 
b/hooks/on-boot/03-vdsm-sebool-config
new file mode 100644
index 0000000..9fafe97
--- /dev/null
+++ b/hooks/on-boot/03-vdsm-sebool-config
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# 03-vdsm-sebool-config - Copyright (C) 2014 Red Hat, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# The call will fail if SELinux is off, thus ignoring the retval
+vdsm-tool sebool-config || :
diff --git a/ovirt-node-plugin-vdsm.spec.in b/ovirt-node-plugin-vdsm.spec.in
index db94b22..b2f8b8b 100644
--- a/ovirt-node-plugin-vdsm.spec.in
+++ b/ovirt-node-plugin-vdsm.spec.in
@@ -76,10 +76,14 @@
 %{_libexecdir}/ovirt-node/hooks/pre-upgrade/01-vdsm
 %{_libexecdir}/ovirt-node/hooks/on-boot/01-vdsm-configure
 %{_libexecdir}/ovirt-node/hooks/on-boot/02-sanlock-check
+%{_libexecdir}/ovirt-node/hooks/on-boot/03-vdsm-sebool-config
 %{_sysconfdir}/ovirt-plugins.d
 %{_sysconfdir}/default/version.ovirt-node-plugin-vdsm
 
 %changelog
+* Thu Oct 23 2014 Fabian Deutsch <fabi...@redhat.com> - 0.4.1
+- Add sebool handler rhbz#1150243 rhbz#1156038
+
 * Thu Jun 12 2014 Douglas Schilling Landgraf <dougsl...@redhat.com> 2.0.0
 - Increase the version/release
 


-- 
To view, visit http://gerrit.ovirt.org/34401
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idc95892994ee8760017b5dbd764142dad39a4e8b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node-plugin-vdsm
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Fabian Deutsch <fabi...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to