summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client/Tools/SELinux.py
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2012-09-25 17:38:39 -0500
committerSol Jerome <sol.jerome@gmail.com>2012-09-25 17:40:47 -0500
commitb16405c44be8177ca21d9ea1219e51d8f352eca1 (patch)
treecbe263259e701f3c01535d4956060212fd1c35a0 /src/lib/Bcfg2/Client/Tools/SELinux.py
parent676ea27c515a48f3c0e5cb8ec58fb14a9f93d5e5 (diff)
downloadbcfg2-b16405c44be8177ca21d9ea1219e51d8f352eca1.tar.gz
bcfg2-b16405c44be8177ca21d9ea1219e51d8f352eca1.tar.bz2
bcfg2-b16405c44be8177ca21d9ea1219e51d8f352eca1.zip
SELinux: Do not attempt transaction while locked
Without this, the code falls through to the rest of the method which attempts to do the install even when there is a transaction lock. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Bcfg2/Client/Tools/SELinux.py')
-rw-r--r--src/lib/Bcfg2/Client/Tools/SELinux.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/SELinux.py b/src/lib/Bcfg2/Client/Tools/SELinux.py
index 9a0913486..9dbc48b9e 100644
--- a/src/lib/Bcfg2/Client/Tools/SELinux.py
+++ b/src/lib/Bcfg2/Client/Tools/SELinux.py
@@ -849,6 +849,7 @@ class SELinuxModuleHandler(SELinuxEntryHandler):
self.tool.post_txn_queue.append((self._install_semodule,
(entry,),
dict(fromqueue=True)))
+ return False
self.logger.debug("Install SELinux module %s with semodule -i %s" %
(entry.get('name'), self._filepath(entry)))
try: