All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Lautrbach <plautrba@redhat.com>
To: selinux@tycho.nsa.gov
Subject: [PATCH] python/semanage: bring semanageRecords.set_reload back
Date: Thu, 11 Jan 2018 17:22:10 +0100	[thread overview]
Message-ID: <20180111162210.21281-1-plautrba@redhat.com> (raw)

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

             reply	other threads:[~2018-01-11 16:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-11 16:22 Petr Lautrbach [this message]
2018-01-16 14:45 ` [PATCH] python/semanage: bring semanageRecords.set_reload back Stephen Smalley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180111162210.21281-1-plautrba@redhat.com \
    --to=plautrba@redhat.com \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.