fix PRINC QA Warning
v2 cover fix PRINC QA Warning
An updated version of the series sent out by Hongxu Jia a few weeks back. Integrating the original series caused grief on some of my builders, so this is a modified approach, hopefully preserving the original credit and making it clear where I'm to blame.
FWIW, there's been several stable releases of the selinux tools, so they're due for an update, which'll make most of these changes simply go away, but I won't have time to look at that for at least a couple of weeks yet.
Signature · 2 lines
-Joe MacDonald. :wq
PATCH 1/9 policycoreutils: remove PRINC warning
From: Hongxu Jia <[email protected]>
Bump up PR and remove PRINC. Set it to something suitably large that it's unlikely to break anyone's package feed and so that it shows it's clearly an exception case. Obviously this is just a staging activity until the next update when we don't include anything of the sort.
--- recipes-security/selinux/policycoreutils.inc | 2 -- recipes-security/selinux/policycoreutils_2.2.5.bb | 2 +- recipes-security/selinux/policycoreutils_git.bb | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-)
recipes-security/selinux/policycoreutils.inc +0 -2
@@ -1,5 +1,3 @@ -PRINC = "1" - SUMMARY = "SELinux policy core utilities" DESCRIPTION = "policycoreutils contains the policy core utilities that are required \ for basic operation of a SELinux system. These utilities include \
recipes-security/selinux/policycoreutils_2.2.5.bb +1 -1
@@ -1,4 +1,4 @@ -PR = "r1" +PR = "r99" include selinux_20131030.inc include ${BPN}.inc
recipes-security/selinux/policycoreutils_git.bb +1 -1
@@ -1,4 +1,4 @@ -PR = "r0" +PR = "r99" PV = "2.2.5+git${SRCPV}" include selinux_git.inc
Signature · 1 line
1.7.10.4
PATCH 2/9 libpcre_8.34.bbappend: remove PRINC warning
In reply to Joe MacDonaldFrom: Hongxu Jia <[email protected]>
The libpcre has been upgrade to 8.34 in oe-core, but since we were still using PRINC until now, we'll need to keep it around (in a PR form), so set it to something suitably large that it's unlikely to break anyone's package feed and so that it shows it's clearly an exception case. Obviously this is just a staging activity until the next update when we don't include anything of the sort.
--- recipes-support/libpcre/libpcre_8.34.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-support/libpcre/libpcre_8.34.bbappend +1 -1
@@ -1,4 +1,4 @@ -PRINC = "1" +PR .= "9" do_install_append () { if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
Signature · 1 line
1.7.10.4
PATCH 3/9 sepolgen: remove PRINC warning
In reply to Joe MacDonaldFrom: Hongxu Jia <[email protected]>
Bump up PR and remove PRINC. Set it to something suitably large that it's unlikely to break anyone's package feed and so that it shows it's clearly an exception case. Obviously this is just a staging activity until the next update when we don't include anything of the sort.
--- recipes-security/selinux/sepolgen.inc | 2 -- recipes-security/selinux/sepolgen_1.2.1.bb | 2 +- recipes-security/selinux/sepolgen_git.bb | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-)
recipes-security/selinux/sepolgen.inc +0 -2
@@ -1,5 +1,3 @@ -PRINC = "1" - SUMMARY = "Python modules for supporting various SELinux utilities." DESCRIPTION = "\ This package contains a Python module that forms the core of the \
recipes-security/selinux/sepolgen_1.2.1.bb +1 -1
@@ -1,4 +1,4 @@ -PR = "r0" +PR = "r99" include selinux_20131030.inc include ${BPN}.inc
recipes-security/selinux/sepolgen_git.bb +1 -1
@@ -1,4 +1,4 @@ -PR = "r0" +PR = "r99" PV = "1.2.1+git${SRCPV}" include selinux_git.inc
Signature · 1 line
1.7.10.4
PATCH 4/9 libsepol: remove PRINC warning
In reply to Joe MacDonaldFrom: Hongxu Jia <[email protected]>
Bump up PR and remove PRINC. Set it to something suitably large that it's unlikely to break anyone's package feed and so that it shows it's clearly an exception case. Obviously this is just a staging activity until the next update when we don't include anything of the sort.
--- recipes-security/selinux/libsepol.inc | 2 -- recipes-security/selinux/libsepol_2.2.bb | 2 +- recipes-security/selinux/libsepol_git.bb | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-)
recipes-security/selinux/libsepol.inc +0 -2
@@ -1,5 +1,3 @@ -PRINC = "1" - SUMMARY = "SELinux binary policy manipulation library" DESCRIPTION = "libsepol provides an API for the manipulation of SELinux binary policies. \ It is used by checkpolicy (the policy compiler) and similar tools, as well \
recipes-security/selinux/libsepol_2.2.bb +1 -1
@@ -1,4 +1,4 @@ -PR = "r0" +PR = "r99" include selinux_20131030.inc include ${BPN}.inc
recipes-security/selinux/libsepol_git.bb +1 -1
@@ -1,4 +1,4 @@ -PR = "r0" +PR = "r99" PV = "2.2+git${SRCPV}" include selinux_git.inc
Signature · 1 line
1.7.10.4
PATCH 5/9 libsemanage: remove PRINC warning
In reply to Joe MacDonaldFrom: Hongxu Jia <[email protected]>
Bump up PR and remove PRINC. Set it to something suitably large that it's unlikely to break anyone's package feed and so that it shows it's clearly an exception case. Obviously this is just a staging activity until the next update when we don't include anything of the sort.
--- recipes-security/selinux/libsemanage.inc | 2 -- recipes-security/selinux/libsemanage_2.2.bb | 2 +- recipes-security/selinux/libsemanage_git.bb | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-)
recipes-security/selinux/libsemanage.inc +0 -2
@@ -1,5 +1,3 @@ -PRINC = "1" - SUMMARY = "SELinux binary policy manipulation library" DESCRIPTION = "libsemanage provides an API for the manipulation of SELinux binary policies. \ It is used by checkpolicy (the policy compiler) and similar tools, as well \
recipes-security/selinux/libsemanage_2.2.bb +1 -1
@@ -1,4 +1,4 @@ -PR = "r0" +PR = "r99" include selinux_20131030.inc include ${BPN}.inc
recipes-security/selinux/libsemanage_git.bb +1 -1
@@ -1,4 +1,4 @@ -PR = "r0" +PR = "r99" PV = "2.2+git${SRCPV}" include selinux_git.inc
Signature · 1 line
1.7.10.4
PATCH 6/9 libselinux: remove PRINC warning
In reply to Joe MacDonaldFrom: Hongxu Jia <[email protected]>
Bump up PR and remove PRINC. Set it to something suitably large that it's unlikely to break anyone's package feed and so that it shows it's clearly an exception case. Obviously this is just a staging activity until the next update when we don't include anything of the sort.
--- recipes-security/selinux/libselinux.inc | 2 -- recipes-security/selinux/libselinux_2.2.2.bb | 2 +- recipes-security/selinux/libselinux_git.bb | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-)
recipes-security/selinux/libselinux.inc +0 -2
@@ -1,5 +1,3 @@ -PRINC = "1" - SUMMARY = "SELinux library and simple utilities" DESCRIPTION = "libselinux provides an API for SELinux applications to get and set \ process and file security contexts and to obtain security policy \
recipes-security/selinux/libselinux_2.2.2.bb +1 -1
@@ -1,4 +1,4 @@ -PR = "r0" +PR = "r99" include selinux_20131030.inc include ${BPN}.inc
recipes-security/selinux/libselinux_git.bb +1 -1
@@ -1,4 +1,4 @@ -PR = "r0" +PR = "r99" PV = "2.2+git${SRCPV}" include selinux_git.inc
Signature · 1 line
1.7.10.4
PATCH 7/9 checkpolicy: remove PRINC warning
In reply to Joe MacDonaldFrom: Hongxu Jia <[email protected]>
Bump up PR and remove PRINC. Set it to something suitably large that it's unlikely to break anyone's package feed and so that it shows it's clearly an exception case. Obviously this is just a staging activity until the next update when we don't include anything of the sort.
--- recipes-security/selinux/checkpolicy.inc | 2 -- recipes-security/selinux/checkpolicy_2.2.bb | 2 +- recipes-security/selinux/checkpolicy_git.bb | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-)
recipes-security/selinux/checkpolicy.inc +0 -2
@@ -1,5 +1,3 @@ -PRINC = "1" - SUMMARY = "SELinux policy compiler" DESCRIPTION = "\ This package contains checkpolicy, the SELinux policy compiler. Only \
recipes-security/selinux/checkpolicy_2.2.bb +1 -1
@@ -1,4 +1,4 @@ -PR = "r0" +PR = "r99" include selinux_20131030.inc include ${BPN}.inc
recipes-security/selinux/checkpolicy_git.bb +1 -1
@@ -1,4 +1,4 @@ -PR = "r0" +PR = "r99" PV = "2.2+git${SRCPV}" include selinux_git.inc
Signature · 1 line
1.7.10.4
PATCH 8/9 refpolicy: remove PRINC warning
In reply to Joe MacDonaldFrom: Hongxu Jia <[email protected]>
Bump up PR and remove PRINC. Set it to something suitably large that it's unlikely to break anyone's package feed and so that it shows it's clearly an exception case. Obviously this is just a staging activity until the next update when we don't include anything of the sort.
--- recipes-security/refpolicy/refpolicy-mcs_2.20130424.bb | 2 +- recipes-security/refpolicy/refpolicy-minimum_2.20130424.bb | 2 ++ recipes-security/refpolicy/refpolicy-mls_2.20130424.bb | 2 +- recipes-security/refpolicy/refpolicy-standard_2.20130424.bb | 2 +- recipes-security/refpolicy/refpolicy-targeted_2.20130424.bb | 1 + recipes-security/refpolicy/refpolicy_2.20130424.inc | 2 -- recipes-security/refpolicy/refpolicy_common.inc | 2 -- 7 files changed, 6 insertions(+), 7 deletions(-)
recipes-security/refpolicy/refpolicy-mcs_2.20130424.bb +1 -1
@@ -6,7 +6,7 @@ level. This is useful on systems where a hierarchical policy (MLS) isn't \ needed (pretty much all systems) but the non-hierarchical categories are. \ " -PR = "r0" +PR = "r99" POLICY_TYPE = "mcs"
recipes-security/refpolicy/refpolicy-minimum_2.20130424.bb +2 -0
@@ -1,3 +1,5 @@ +PR = "r99" + include refpolicy-targeted_${PV}.bb SUMMARY = "SELinux minimum policy"
recipes-security/refpolicy/refpolicy-mls_2.20130424.bb +1 -1
@@ -5,7 +5,7 @@ It allows giving data labels such as \"Top Secret\" and preventing \ such data from leaking to processes or files with lower classification. \ " -PR = "r0" +PR = "r99" POLICY_TYPE = "mls"
recipes-security/refpolicy/refpolicy-standard_2.20130424.bb +1 -1
@@ -3,7 +3,7 @@ DESCRIPTION = "\ This is the reference policy for SELinux built with type enforcement \ only." -PR = "r3" +PR = "r99" POLICY_TYPE = "standard"
recipes-security/refpolicy/refpolicy-targeted_2.20130424.bb +1 -0
@@ -12,6 +12,7 @@ POLICY_NAME = "targeted" POLICY_TYPE = "mcs" POLICY_MLS_SENS = "0" +PR = "r99" include refpolicy_${PV}.inc SRC_URI += "file://refpolicy-fix-optional-issue-on-sysadm-module.patch \
recipes-security/refpolicy/refpolicy_2.20130424.inc +0 -2
@@ -1,5 +1,3 @@ -PRINC = "1" - SRC_URI = "http://oss.tresys.com/files/refpolicy/refpolicy-${PV}.tar.bz2;" SRC_URI[md5sum] = "6a5c975258cc8eb92c122f11b11a5085" SRC_URI[sha256sum] = "6039ba854f244a39dc727cc7db25632f7b933bb271c803772d754d4354f5aef4"
recipes-security/refpolicy/refpolicy_common.inc +0 -2
@@ -1,5 +1,3 @@ -PRINC = "4" - SECTION = "base" LICENSE = "GPLv2"
Signature · 1 line
1.7.10.4
PATCH 9/9 linux-yocto: remove PRINC warning
In reply to Joe MacDonaldConvert PRINC to PR .= so as to not break package feeds. Next time this won't be necessary at all.
--- recipes-kernel/linux/linux-yocto_3.10.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-kernel/linux/linux-yocto_3.10.bbappend +1 -1
@@ -1,4 +1,4 @@ -PRINC = "1" +PR .= "1" FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" # Enable selinux support in the kernel if the feature is enabled
Signature · 1 line
1.7.10.4
Re: [meta-selinux][PATCH 9/9] linux-yocto: remove PRINC warning
Quoted 13 lines · Joe MacDonald
Convert PRINC to PR .= so as to not break package feeds. Next time this won't be necessary at all.
Signed-off-by Joe MacDonald <[email protected]>--- recipes-kernel/linux/linux-yocto_3.10.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)recipes-kernel/linux/linux-yocto_3.10.bbappend +0
-0
recipes-kernel/linux/linux-yocto_3.10.bbappend line 1
Quoted 2 lines
recipes-kernel/linux/linux-yocto_3.10.bbappend +1
-1@@ -1,4 +1,4 @@ -PRINC = "1" +PR .= "1"
Does this one really help? PRINC increments first numeric part of PR, so in linux-yocto case it would be INC_PR and you're appending 1 to last part.
so from r6.5 you'll get r5.51 if I parse it correctly before morning coffee.
Quoted 11 lines
recipes-kernel/linux/linux-yocto_3.10.bbappend +0
-0FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" # Enable selinux support in the kernel if the feature is enabledSignature · 7 lines
1.7.10.4 -- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Re: [meta-selinux][PATCH 9/9] linux-yocto: remove PRINC warning
Quoted 21 lines · [Re: [yocto] [meta-selinux][PATCH 9/9] linux-yocto: remove PRINC warning] On…
Quoted 13 lines · Joe MacDonald
Convert PRINC to PR .= so as to not break package feeds. Next time this won't be necessary at all.
Signed-off-by Joe MacDonald <[email protected]>--- recipes-kernel/linux/linux-yocto_3.10.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)recipes-kernel/linux/linux-yocto_3.10.bbappend +0
-0recipes-kernel/linux/linux-yocto_3.10.bbappend line 1
Quoted 2 lines
recipes-kernel/linux/linux-yocto_3.10.bbappend +1
-1@@ -1,4 +1,4 @@ -PRINC = "1" +PR .= "1"Does this one really help? PRINC increments first numeric part of PR, so in linux-yocto case it would be
INC_PRand you're appending 1 to last part.
Quoted 2 lines
so from r6.5 you'll get r5.51 if I parse it correctly before morning coffee.
Oop, yeah, you're right. This one's a bit more complicated.
-J.
Quoted 13 lines
Quoted 12 lines
recipes-kernel/linux/linux-yocto_3.10.bbappend +0
-0FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" # Enable selinux support in the kernel if the feature is enabledSignature · 7 lines
1.7.10.4 -- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
Signature · 2 lines
-Joe MacDonald. :wq
PATCH 9/9 linux-yocto: migrate from 3.10 to 3.14
The default kernel is now 3.14. Since the removal of PRINC support leaves the 3.10 recipe in a difficult-to-work-with state, now seems like a good time to move to the new kernel.
---
.../linux/{linux-yocto_3.10.bbappend => linux-yocto_3.14.bbappend} | 1 -
1 file changed, 1 deletion(-)
rename recipes-kernel/linux/{linux-yocto_3.10.bbappend => linux-yocto_3.14.bbappend} (97%)So, really, I started trying to make sure that the 3.10 kernel package feeds wouldn't go backward and then realized this was kind of a fool's errand, since we're building 3.14 by default anyway and without an existing linux-yocto-* bbappend for it, it's never had the PRINC problem. So I propose ignoring the problem since it's going away on its own anyway.
recipes-kernel/linux/linux-yocto_3.14.bbappend renamed from recipes-kernel/linux/linux-yocto_3.10.bbappend +0 -1
@@ -1,4 +1,3 @@ -PRINC = "1" FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" # Enable selinux support in the kernel if the feature is enabled
Signature · 1 line
1.7.10.4