Discussion:
[PATCH] python/semanage: bring semanageRecords.set_reload back
Petr Lautrbach
2018-01-11 16:22:10 UTC
Permalink
It's used by third parties, e.g. Ansible modules

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1527745

Signed-off-by: Petr Lautrbach <***@redhat.com>
---
python/semanage/seobject.py | 3 +++
1 file changed, 3 insertions(+)

diff --git a/python/semanage/seobject.py b/python/semanage/seobject.py
index b927b184..c2966251 100644
--- a/python/semanage/seobject.py
+++ b/python/semanage/seobject.py
@@ -260,6 +260,9 @@ class semanageRecords:
else:
self.mylog = nulllogger()

+ def set_reload(self, load):
+ self.noreload = not load
+
def get_handle(self, store):
global is_mls_enabled
--
2.15.1
Stephen Smalley
2018-01-16 14:45:10 UTC
Permalink
Post by Petr Lautrbach
It's used by third parties, e.g. Ansible modules
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1527745
Thanks, applied.
Post by Petr Lautrbach
---
 python/semanage/seobject.py | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/python/semanage/seobject.py
b/python/semanage/seobject.py
index b927b184..c2966251 100644
--- a/python/semanage/seobject.py
+++ b/python/semanage/seobject.py
             self.mylog = nulllogger()
 
+        self.noreload = not load
+
         global is_mls_enabled
 
Loading...