diff options
author | Stephen Smalley <sds@tycho.nsa.gov> | 2016-03-07 15:52:50 -0500 |
---|---|---|
committer | Philip Tricca <flihp@twobit.us> | 2016-03-17 02:36:16 +0000 |
commit | 5f0182e2e1c4da1f27d437f458be9bdc8ecade00 (patch) | |
tree | 03d22c849dcb8c5bbeb9674ee515e9cb70d2c210 | |
parent | fad5528d09fbcc988ec59720b4e882e4a53dc061 (diff) | |
download | meta-selinux-5f0182e2e1c4da1f27d437f458be9bdc8ecade00.tar.gz |
refpolicy: Add support for the SYSTEMD build.conf option.
refpolicy has introduced a new build.conf option, SYSTEMD=y,
to enable rules specific to using systemd as the init system.
In particular, without setting this option, rules for direct
domain transitions from init_t to daemon domains are not included
in the policy. Define a POLICY_SYSTEMD variable in the refpolicy
common include file that can be set elsewhere to enable this support.
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Philip Tricca <flihp@twobit.us>
-rw-r--r-- | recipes-security/refpolicy/refpolicy_common.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy_common.inc b/recipes-security/refpolicy/refpolicy_common.inc index 0b0b2fd..67d0426 100644 --- a/recipes-security/refpolicy/refpolicy_common.inc +++ b/recipes-security/refpolicy/refpolicy_common.inc | |||
@@ -35,6 +35,7 @@ POLICY_DISTRO ?= "redhat" | |||
35 | POLICY_UBAC ?= "n" | 35 | POLICY_UBAC ?= "n" |
36 | POLICY_UNK_PERMS ?= "allow" | 36 | POLICY_UNK_PERMS ?= "allow" |
37 | POLICY_DIRECT_INITRC ?= "n" | 37 | POLICY_DIRECT_INITRC ?= "n" |
38 | POLICY_SYSTEMD ?= "n" | ||
38 | POLICY_MONOLITHIC ?= "n" | 39 | POLICY_MONOLITHIC ?= "n" |
39 | POLICY_CUSTOM_BUILDOPT ?= "" | 40 | POLICY_CUSTOM_BUILDOPT ?= "" |
40 | POLICY_QUIET ?= "y" | 41 | POLICY_QUIET ?= "y" |
@@ -48,6 +49,7 @@ EXTRA_OEMAKE += "NAME=${POLICY_NAME} \ | |||
48 | UBAC=${POLICY_UBAC} \ | 49 | UBAC=${POLICY_UBAC} \ |
49 | UNK_PERMS=${POLICY_UNK_PERMS} \ | 50 | UNK_PERMS=${POLICY_UNK_PERMS} \ |
50 | DIRECT_INITRC=${POLICY_DIRECT_INITRC} \ | 51 | DIRECT_INITRC=${POLICY_DIRECT_INITRC} \ |
52 | SYSTEMD=${POLICY_SYSTEMD} \ | ||
51 | MONOLITHIC=${POLICY_MONOLITHIC} \ | 53 | MONOLITHIC=${POLICY_MONOLITHIC} \ |
52 | CUSTOM_BUILDOPT=${POLICY_CUSTOM_BUILDOPT} \ | 54 | CUSTOM_BUILDOPT=${POLICY_CUSTOM_BUILDOPT} \ |
53 | QUIET=${POLICY_QUIET} \ | 55 | QUIET=${POLICY_QUIET} \ |