mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-04 20:02:25 +00:00
python/semanage/seobject.py: Fix undefined store check
self.store is always a string (actual store name or "") because of semanageRecords.__init__. Fix check for not defined store. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1559174#c3 Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
This commit is contained in:
parent
c41633b90e
commit
9a9b0e9d61
@ -2651,7 +2651,7 @@ class booleanRecords(semanageRecords):
|
||||
self.current_booleans = []
|
||||
ptype = None
|
||||
|
||||
if self.store is None or self.store == ptype:
|
||||
if self.store == "" or self.store == ptype:
|
||||
self.modify_local = True
|
||||
else:
|
||||
self.modify_local = False
|
||||
|
Loading…
Reference in New Issue
Block a user