diff options
author | Wenzong Fan <wenzong.fan@windriver.com> | 2015-07-09 15:58:56 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2015-08-07 16:11:55 -0400 |
commit | dba3728010be763d07e4725c305e3b8657c4267b (patch) | |
tree | a66e8142b7495fcf5c7960f04552e287639e4f32 | |
parent | 96927432c4e222c64f76d0ec08a2a66c2a25c3e0 (diff) | |
download | meta-selinux-dba3728010be763d07e4725c305e3b8657c4267b.tar.gz |
refpolicy: correct SELINUX_DEVEL_PATH
The sepolgen.conf should be installed with devel package to correct
the default value of SELINUX_DEVEL_PATH, Makefile will be searched from
that path while building policies on target.
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
-rw-r--r-- | recipes-security/refpolicy/refpolicy_common.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/recipes-security/refpolicy/refpolicy_common.inc b/recipes-security/refpolicy/refpolicy_common.inc index 0dc055e..620e7c0 100644 --- a/recipes-security/refpolicy/refpolicy_common.inc +++ b/recipes-security/refpolicy/refpolicy_common.inc | |||
@@ -15,7 +15,10 @@ FILES_${PN} = " \ | |||
15 | ${sysconfdir}/selinux/${POLICY_NAME}/ \ | 15 | ${sysconfdir}/selinux/${POLICY_NAME}/ \ |
16 | ${datadir}/selinux/${POLICY_NAME}/*.pp \ | 16 | ${datadir}/selinux/${POLICY_NAME}/*.pp \ |
17 | " | 17 | " |
18 | FILES_${PN}-dev =+ "${datadir}/selinux/${POLICY_NAME}/include/" | 18 | FILES_${PN}-dev =+ " \ |
19 | ${datadir}/selinux/${POLICY_NAME}/include/ \ | ||
20 | ${sysconfdir}/selinux/sepolgen.conf \ | ||
21 | " | ||
19 | 22 | ||
20 | DEPENDS += "checkpolicy-native policycoreutils-native m4-native" | 23 | DEPENDS += "checkpolicy-native policycoreutils-native m4-native" |
21 | RDEPENDS_${PN} += "selinux-config" | 24 | RDEPENDS_${PN} += "selinux-config" |
@@ -122,3 +125,8 @@ do_install () { | |||
122 | rebuild_policy | 125 | rebuild_policy |
123 | install_misc_files | 126 | install_misc_files |
124 | } | 127 | } |
128 | |||
129 | do_install_append(){ | ||
130 | # While building policies on target, Makefile will be searched from SELINUX_DEVEL_PATH | ||
131 | echo "SELINUX_DEVEL_PATH=${datadir}/selinux/${POLICY_NAME}/include" > ${D}${sysconfdir}/selinux/sepolgen.conf | ||
132 | } | ||