mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-30 01:12:51 +00:00
python/sepolgen: refpolicy installs its Makefile in include/Makefile
When running "make install-headers" on refpolicy, /usr/share/selinux/refpolicy/Makefile does not exist but /usr/share/selinux/refpolicy/include/Makefile does. Use it when available. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
parent
e1f2db5887
commit
916640d786
@ -70,7 +70,10 @@ def attribute_info():
|
||||
|
||||
def refpolicy_makefile():
|
||||
chooser = PathChooser("/etc/selinux/sepolgen.conf")
|
||||
return chooser("Makefile")
|
||||
result = chooser("Makefile")
|
||||
if not os.path.exists(result):
|
||||
result = chooser("include/Makefile")
|
||||
return result
|
||||
|
||||
def headers():
|
||||
chooser = PathChooser("/etc/selinux/sepolgen.conf")
|
||||
|
Loading…
Reference in New Issue
Block a user