#7 Please do not hardcode the policy RPM name
Closed: Fixed by plautrba. Opened by bigon.

Hi,

It would be nice if the policy RPM name was detected at runtime instead of being hardcoded in the code.

Maybe the name could be detected by looking at the owner of the /etc/selinux/ directory?


I guess it's related to the https://pagure.io/setroubleshoot/issue/6 ?

So that in first step we would use get_rpm_nvr_by_file_path("/etc/selinux/%s" % policytype) instead of get_rpm_nvr_by_name("selinux-policy")

And in the second step, get_rpm_* functions would be replaced by wrappers which choose rpm or dpkg based on the running system.

Yes it's related to bug #6

Indeed that was my idea as well

https://pagure.io/setroubleshoot/pull-request/35

Lets have only one issue - https://pagure.io/setroubleshoot/issue/6 - given that both means support for debian based distributions.

Metadata Update from @plautrba:
- Issue close_status updated to: Duplicate
- Issue status updated to: Closed (was: Open)

Commit 12eefb56 fixes this issue

Metadata