mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-19 09:44:09 +00:00
SELinuxPolicy: Add additional debugging messages in potential policy logic.
This commit is contained in:
parent
e240d7f242
commit
4cd0c31a82
@ -171,8 +171,14 @@ cdef class SELinuxPolicy:
|
||||
|
||||
def _potential_policies(self):
|
||||
"""Generate a list of potential policies to use."""
|
||||
self.log.debug("SELinuxfs exists: {}".format(selinux.selinuxfs_exists()))
|
||||
self.log.debug("Sepol version range: {}-{}".format(sepol.sepol_policy_kern_vers_min(),
|
||||
sepol.sepol_policy_kern_vers_max()))
|
||||
self.log.debug("Binary policy path: {}".format(selinux.selinux_binary_policy_path()))
|
||||
|
||||
# try libselinux for current policy
|
||||
if selinux.selinuxfs_exists():
|
||||
self.log.debug("Current policy path: {}".format(selinux.selinux_current_policy_path()))
|
||||
yield selinux.selinux_current_policy_path()
|
||||
|
||||
# otherwise look through the supported policy versions
|
||||
|
Loading…
Reference in New Issue
Block a user