Skip to contentSkip to conversation

fix PRINC QA Warning

PATCH New Joe MacDonald 2 participants 13 messages May 7, 2014 – May 8, 2014

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 521e70b..a4d174c 100644
@@ -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
index 560cee6..2bbf541 100644
@@ -1,4 +1,4 @@
-PR = "r1"
+PR = "r99"
 
 include selinux_20131030.inc
 include ${BPN}.inc
recipes-security/selinux/policycoreutils_git.bb +1 -1
index 92f6c26..823edb2 100644
@@ -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
#2 lore raw

PATCH 2/9 libpcre_8.34.bbappend: remove PRINC warning

In reply to Joe MacDonald

From: 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
index 25117ff..9131f8d 100644
@@ -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
#3 lore raw

PATCH 3/9 sepolgen: remove PRINC warning

In reply to Joe MacDonald

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/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
index 05e6544..b5729ae 100644
@@ -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
index eb1065a..a253e17 100644
@@ -1,4 +1,4 @@
-PR = "r0"
+PR = "r99"
 
 include selinux_20131030.inc
 include ${BPN}.inc
recipes-security/selinux/sepolgen_git.bb +1 -1
index 95c3491..9b3cbe2 100644
@@ -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
#4 lore raw

PATCH 4/9 libsepol: remove PRINC warning

In reply to Joe MacDonald

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/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
index b7509e2..b24ed28 100644
@@ -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
index b4d717c..485d1da 100644
@@ -1,4 +1,4 @@
-PR = "r0"
+PR = "r99"
 
 include selinux_20131030.inc
 include ${BPN}.inc
recipes-security/selinux/libsepol_git.bb +1 -1
index bc2bd8f..3f83c90 100644
@@ -1,4 +1,4 @@
-PR = "r0"
+PR = "r99"
 PV = "2.2+git${SRCPV}"
 
 include selinux_git.inc
Signature · 1 line
1.7.10.4
#5 lore raw

PATCH 5/9 libsemanage: remove PRINC warning

In reply to Joe MacDonald

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/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
index d01bf6f..7742c30 100644
@@ -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
index 93daf9f..72e9c19 100644
@@ -1,4 +1,4 @@
-PR = "r0"
+PR = "r99"
 
 include selinux_20131030.inc
 include ${BPN}.inc
recipes-security/selinux/libsemanage_git.bb +1 -1
index a32ebc3..9106904 100644
@@ -1,4 +1,4 @@
-PR = "r0"
+PR = "r99"
 PV = "2.2+git${SRCPV}"
 
 include selinux_git.inc
Signature · 1 line
1.7.10.4
#6 lore raw

PATCH 6/9 libselinux: remove PRINC warning

In reply to Joe MacDonald

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/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
index 484f41c..d571a7c 100644
@@ -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
index d0a4e2e..0027a35 100644
@@ -1,4 +1,4 @@
-PR = "r0"
+PR = "r99"
 
 include selinux_20131030.inc
 include ${BPN}.inc
recipes-security/selinux/libselinux_git.bb +1 -1
index fb4fef2..97d4649 100644
@@ -1,4 +1,4 @@
-PR = "r0"
+PR = "r99"
 PV = "2.2+git${SRCPV}"
 
 include selinux_git.inc
Signature · 1 line
1.7.10.4
#7 lore raw

PATCH 7/9 checkpolicy: remove PRINC warning

In reply to Joe MacDonald

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/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
index 54edc11..e0c7377 100644
@@ -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
index 8388e0f..47bbf57 100644
@@ -1,4 +1,4 @@
-PR = "r0"
+PR = "r99"
 
 include selinux_20131030.inc
 include ${BPN}.inc
recipes-security/selinux/checkpolicy_git.bb +1 -1
index bf6250d..5b6ba4b 100644
@@ -1,4 +1,4 @@
-PR = "r0"
+PR = "r99"
 PV = "2.2+git${SRCPV}"
 
 include selinux_git.inc
Signature · 1 line
1.7.10.4
#8 lore raw

PATCH 8/9 refpolicy: remove PRINC warning

In reply to Joe MacDonald

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/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
index adb8e4a..9288e2a 100644
@@ -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
index e904810..ae9cb43 100644
@@ -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
index b20f130..e586ac2 100644
@@ -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
index 922df42..98bc26b 100644
@@ -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
index 2d112b3..1f20caa 100644
@@ -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
index dcce3ba..5dbb2dc 100644
@@ -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
index 76c3efb..4d05382 100644
@@ -1,5 +1,3 @@
-PRINC = "4"
-
 SECTION = "base"
 LICENSE = "GPLv2"
 
Signature · 1 line
1.7.10.4
#9 lore raw

PATCH 9/9 linux-yocto: remove PRINC warning

In reply to Joe MacDonald

Convert 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
index 159d63b..6686974 100644
@@ -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
#10 lore raw

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.

---
 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
index 159d63b..6686974 100644

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 -0
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
 # Enable selinux support in the kernel if the feature is enabled
Signature · 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]
#11 lore raw

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.

---
 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
index 159d63b..6686974 100644

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.

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 -0
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
 # Enable selinux support in the kernel if the feature is enabled
Signature · 7 lines
1.7.10.4

-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Signature · 2 lines
-Joe MacDonald.
:wq
#12 lore raw

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
similarity index 97%
rename from recipes-kernel/linux/linux-yocto_3.10.bbappend
rename to recipes-kernel/linux/linux-yocto_3.14.bbappend
index 159d63b..4118cc0 100644
@@ -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