From 7b16132a2b6bae0c610459f408c4057f7cb9aa93 Mon Sep 17 00:00:00 2001 From: Xin Ouyang Date: Wed, 10 Oct 2012 17:57:59 +0800 Subject: policycoreutils: disable QA checkes for fixfiles. fixfiles in /sbin would run some /usr/bin binaries to cause these QA warnings. WARNING: Shell scripts in base_bindir and base_sbindir should not reference anything in exec_prefix Since fixfiles is installed into /sbin in most Linux distros, changing this path may cause runtime errors for some hard coded binaries. So, disable unsafe-references-in-scripts QA checkes. Signed-off-by: Xin Ouyang --- recipes-security/selinux/policycoreutils_2.1.10.bb | 4 +++- recipes-security/selinux/policycoreutils_git.bb | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/recipes-security/selinux/policycoreutils_2.1.10.bb b/recipes-security/selinux/policycoreutils_2.1.10.bb index 1990977..73d4afb 100644 --- a/recipes-security/selinux/policycoreutils_2.1.10.bb +++ b/recipes-security/selinux/policycoreutils_2.1.10.bb @@ -5,7 +5,7 @@ load_policy to load policies, setfiles to label filesystems, newrole \ to switch roles, and run_init to run /etc/init.d scripts in the proper \ context." SECTION = "base" -PR = "r3" +PR = "r4" LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" @@ -38,6 +38,8 @@ RDEPENDS_${BPN} += "\ " RDEPENDS_${BPN} += "setools" +WARN_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${WARN_QA}', d)}" +ERROR_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${ERROR_QA}', d)}" PACKAGES =+ "${PN}-python ${PN}-sandbox" FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" diff --git a/recipes-security/selinux/policycoreutils_git.bb b/recipes-security/selinux/policycoreutils_git.bb index 373cdb0..7ff4c58 100644 --- a/recipes-security/selinux/policycoreutils_git.bb +++ b/recipes-security/selinux/policycoreutils_git.bb @@ -5,7 +5,7 @@ load_policy to load policies, setfiles to label filesystems, newrole \ to switch roles, and run_init to run /etc/init.d scripts in the proper \ context." SECTION = "base" -PR = "r3" +PR = "r4" LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" DEFAULT_PREFERENCE = "-1" @@ -39,6 +39,8 @@ RDEPENDS_${BPN} += "\ " RDEPENDS_${BPN} += "setools" +WARN_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${WARN_QA}', d)}" +ERROR_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${ERROR_QA}', d)}" PACKAGES =+ "${PN}-python ${PN}-sandbox" FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" -- cgit v1.2.3-54-g00ecf