diff options
Diffstat (limited to 'src/lib/Bcfg2')
-rw-r--r-- | src/lib/Bcfg2/Client/Tools/SELinux.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/SELinux.py b/src/lib/Bcfg2/Client/Tools/SELinux.py index 16aeababe..ce49bfb82 100644 --- a/src/lib/Bcfg2/Client/Tools/SELinux.py +++ b/src/lib/Bcfg2/Client/Tools/SELinux.py @@ -761,6 +761,13 @@ class SELinuxModuleHandler(SELinuxEntryHandler): rv[os.path.basename(mod)[:-3]] = ('', 1) return rv + def _key(self, entry): + name = entry.get("name").lstrip("/") + if name.endswith(".pp"): + return name[:-3] + else: + return name + def _key2attrs(self, key): rv = SELinuxEntryHandler._key2attrs(self, key) status = self.all_records[key][1] |