selinux-refpolicy/support/policyvers.py
Chris PeBenito 3bf7fd504c Use python libselinux bindings to determine policy version.
This eliminates the hardcoded /selinux in Rules.monolithic, which
broke when the filesystem mount was moved to /sys/fs/selinux.
2013-06-06 09:27:40 -04:00

4 lines
69 B
Python

#!/usr/bin/python
import selinux
print selinux.security_policyvers()