[yocto] [meta-selinux][PATCH 2/3] cleanup 'virtual/refpolicy' & switch to 'refpolicy'

Shrikant Bobade bobadeshrikant at gmail.com
Tue Sep 20 07:28:35 PDT 2016


From: Shrikant Bobade <shrikant_bobade at mentor.com>

this change drop complete use of 'virtual/refpolicy' & switch to 'refpolicy'
use, the mix use of both results in mismatching policy varient selection.

with use of 'virtual/refpolicy' at config. level, when we try to switch to
other policy varients using 'refpolicy' at local.conf level we
continue to get the policy varient set at config. level, so drop the use of
'virtual/refpolicy' & switch to 'refpolicy'.

Signed-off-by: Shrikant Bobade <shrikant_bobade at mentor.com>
---
 conf/distro/oe-selinux.conf                     | 2 +-
 recipes-security/refpolicy/refpolicy_common.inc | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/conf/distro/oe-selinux.conf b/conf/distro/oe-selinux.conf
index 0011d45..f4574d0 100644
--- a/conf/distro/oe-selinux.conf
+++ b/conf/distro/oe-selinux.conf
@@ -2,4 +2,4 @@ DISTRO = "oe-selinux"
 DISTROOVERRIDES .= ":selinux"
 
 DISTRO_FEATURES_append = " acl xattr pam selinux"
-PREFERRED_PROVIDER_virtual/refpolicy ?= "refpolicy-mls"
+PREFERRED_PROVIDER_refpolicy ?= "refpolicy-mls"
diff --git a/recipes-security/refpolicy/refpolicy_common.inc b/recipes-security/refpolicy/refpolicy_common.inc
index a9dc466..1017d29 100644
--- a/recipes-security/refpolicy/refpolicy_common.inc
+++ b/recipes-security/refpolicy/refpolicy_common.inc
@@ -5,7 +5,7 @@ LICENSE = "GPLv2"
 
 LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=393a5ca445f6965873eca0259a17f833"
 
-PROVIDES += "virtual/refpolicy"
+PROVIDES += "refpolicy"
 RPROVIDES_${PN} += "refpolicy"
 
 # Specific config files for Poky
-- 
1.9.1




More information about the yocto mailing list