Skip to contentSkip to conversation

distro: Inherit SELinux distro

PATCH In review Adrian Dudau 2 participants 3 messages May 10, 2016 – May 11, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 distro: Inherit SELinux distro

meta-selinux defines a distro with refpolicy providers. Inherit that instead of trying to define our own refpolicies.

---
 meta-cgl-common/conf/distro/poky-cgl.conf | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta-cgl-common/conf/distro/poky-cgl.conf +1 -2
index 1fd453e..ab102d5 100644
@@ -1,7 +1,6 @@
 require conf/distro/poky-lsb.conf
+require conf/distro/poky-selinux.conf
 
 DISTRO = "poky-cgl"
 
-DISTRO_FEATURES_append = " pam selinux"
-
 IMAGE_CLASSES += "image_types_uboot"
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 selinux: Use targeted refpolicy

POLICY_NAME and DEFAULT_ENFORCING are set in each refpolicy recipe in meta-selinux now.

---
 meta-cgl-common/conf/distro/poky-cgl.conf | 2 ++
 1 file changed, 2 insertions(+)
meta-cgl-common/conf/distro/poky-cgl.conf +2 -0
index ab102d5..f6c2d7b 100644
@@ -4,3 +4,5 @@ require conf/distro/poky-selinux.conf
 DISTRO = "poky-cgl"
 
 IMAGE_CLASSES += "image_types_uboot"
+
+PREFERRED_PROVIDER_virtual/refpolicy="refpolicy-targeted"
Signature · 1 line
1.9.1
#2 lore raw
In reply to Adrian Dudau

ok from my side

On Tuesday, May 10, 2016 3:04 PM, Adrian Dudau <[email protected]> wrote:

meta-selinux defines a distro with refpolicy providers. Inherit that
instead of trying to define our own refpolicies.

---
 meta-cgl-common/conf/distro/poky-cgl.conf | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta-cgl-common/conf/distro/poky-cgl.conf +1 -2
index 1fd453e..ab102d5 100644
@@ -1,7 +1,6 @@
 require conf/distro/poky-lsb.conf
+require conf/distro/poky-selinux.conf
 
 DISTRO = "poky-cgl"
 
-DISTRO_FEATURES_append = " pam selinux"
-
 IMAGE_CLASSES += "image_types_uboot"
Signature · 7 lines
1.9.1

-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto