[yocto] [PATCH 10/13] refpolicy: update for change in libsemanage 2.5

Stephen Smalley sds at tycho.nsa.gov
Mon Mar 7 12:52:49 PST 2016


libsemanage 2.5 renamed /var/lib/selinux/tmp to /var/lib/selinux/final;
update the refpolicy recipe accordingly.

Signed-off-by: Stephen Smalley <sds at tycho.nsa.gov>
---
 recipes-security/refpolicy/refpolicy_common.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-security/refpolicy/refpolicy_common.inc b/recipes-security/refpolicy/refpolicy_common.inc
index 5acbf3e..0b0b2fd 100644
--- a/recipes-security/refpolicy/refpolicy_common.inc
+++ b/recipes-security/refpolicy/refpolicy_common.inc
@@ -114,8 +114,8 @@ EOF
 	# Create policy store and build the policy
 	semodule -p ${D} -s ${POLICY_NAME} -n -B
 	rm -f ${D}${sysconfdir}/selinux/semanage.conf
-	# no need to leave tmp dir created by semanage lanying around
-	rm -rf ${D}${localstatedir}/lib/selinux/tmp
+	# no need to leave final dir created by semanage laying around
+	rm -rf ${D}${localstatedir}/lib/selinux/final
 }
 
 install_misc_files () {
-- 
2.4.3




More information about the yocto mailing list