diff options
author | Chris PeBenito <cpebenito@tresys.com> | 2013-06-06 09:27:40 -0400 |
---|---|---|
committer | Sven Vermeulen <sven.vermeulen@siphos.be> | 2013-08-15 10:35:19 +0200 |
commit | 3b16993d1789c1eeeb5df4aab7be75802c97571c (patch) | |
tree | 1a350da5c85b1c35a7dc155d93361fd1b87ef337 /Rules.monolithic | |
parent | Improve style (diff) | |
download | hardened-refpolicy-3b16993d1789c1eeeb5df4aab7be75802c97571c.tar.gz hardened-refpolicy-3b16993d1789c1eeeb5df4aab7be75802c97571c.tar.bz2 hardened-refpolicy-3b16993d1789c1eeeb5df4aab7be75802c97571c.zip |
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.
Diffstat (limited to 'Rules.monolithic')
-rw-r--r-- | Rules.monolithic | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Rules.monolithic b/Rules.monolithic index 7c4d0355..808a5398 100644 --- a/Rules.monolithic +++ b/Rules.monolithic @@ -5,7 +5,7 @@ # determine the policy version and current kernel version if possible pv := $(shell $(CHECKPOLICY) -V |cut -f 1 -d ' ') -kv := $(shell cat /selinux/policyvers) +kv := $(shell $(policyvers)) # dont print version warnings if we are unable to determine # the currently running kernel's policy version |