summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Ouyang <Xin.Ouyang@windriver.com>2012-10-10 17:57:59 +0800
committerXin Ouyang <Xin.Ouyang@windriver.com>2012-10-11 10:52:18 +0800
commit7b16132a2b6bae0c610459f408c4057f7cb9aa93 (patch)
tree3c77b9657bd8b3ff4d74d0de01f739ab17001235
parent70f2c413360f82568db350e918f21cae81ebc294 (diff)
downloadmeta-selinux-7b16132a2b6bae0c610459f408c4057f7cb9aa93.tar.gz
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 <Xin.Ouyang@windriver.com>
-rw-r--r--recipes-security/selinux/policycoreutils_2.1.10.bb4
-rw-r--r--recipes-security/selinux/policycoreutils_git.bb4
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 \
5to switch roles, and run_init to run /etc/init.d scripts in the proper \ 5to switch roles, and run_init to run /etc/init.d scripts in the proper \
6context." 6context."
7SECTION = "base" 7SECTION = "base"
8PR = "r3" 8PR = "r4"
9LICENSE = "GPLv2+" 9LICENSE = "GPLv2+"
10LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" 10LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
11 11
@@ -38,6 +38,8 @@ RDEPENDS_${BPN} += "\
38 " 38 "
39RDEPENDS_${BPN} += "setools" 39RDEPENDS_${BPN} += "setools"
40 40
41WARN_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${WARN_QA}', d)}"
42ERROR_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${ERROR_QA}', d)}"
41 43
42PACKAGES =+ "${PN}-python ${PN}-sandbox" 44PACKAGES =+ "${PN}-python ${PN}-sandbox"
43FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" 45FILES_${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 \
5to switch roles, and run_init to run /etc/init.d scripts in the proper \ 5to switch roles, and run_init to run /etc/init.d scripts in the proper \
6context." 6context."
7SECTION = "base" 7SECTION = "base"
8PR = "r3" 8PR = "r4"
9LICENSE = "GPLv2+" 9LICENSE = "GPLv2+"
10LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" 10LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
11DEFAULT_PREFERENCE = "-1" 11DEFAULT_PREFERENCE = "-1"
@@ -39,6 +39,8 @@ RDEPENDS_${BPN} += "\
39 " 39 "
40RDEPENDS_${BPN} += "setools" 40RDEPENDS_${BPN} += "setools"
41 41
42WARN_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${WARN_QA}', d)}"
43ERROR_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${ERROR_QA}', d)}"
42 44
43PACKAGES =+ "${PN}-python ${PN}-sandbox" 45PACKAGES =+ "${PN}-python ${PN}-sandbox"
44FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" 46FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*"