All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] python/semanage: bring semanageRecords.set_reload back
@ 2018-01-11 16:22 Petr Lautrbach
  2018-01-16 14:45 ` Stephen Smalley
  0 siblings, 1 reply; 2+ messages in thread
From: Petr Lautrbach @ 2018-01-11 16:22 UTC (permalink / raw)
  To: selinux

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 <plautrba@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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] python/semanage: bring semanageRecords.set_reload back
  2018-01-11 16:22 [PATCH] python/semanage: bring semanageRecords.set_reload back Petr Lautrbach
@ 2018-01-16 14:45 ` Stephen Smalley
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Smalley @ 2018-01-16 14:45 UTC (permalink / raw)
  To: Petr Lautrbach, selinux

On Thu, 2018-01-11 at 17:22 +0100, Petr Lautrbach wrote:
> It's used by third parties, e.g. Ansible modules
> 
> Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1527745

Thanks, applied.

> 
> Signed-off-by: Petr Lautrbach <plautrba@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
>  

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-16 14:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-11 16:22 [PATCH] python/semanage: bring semanageRecords.set_reload back Petr Lautrbach
2018-01-16 14:45 ` Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.