diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-10-10 17:57:59 +0800 |
---|---|---|
committer | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-10-11 10:52:18 +0800 |
commit | 7b16132a2b6bae0c610459f408c4057f7cb9aa93 (patch) | |
tree | 3c77b9657bd8b3ff4d74d0de01f739ab17001235 | |
parent | 70f2c413360f82568db350e918f21cae81ebc294 (diff) | |
download | meta-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.bb | 4 | ||||
-rw-r--r-- | 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 \ | |||
5 | to switch roles, and run_init to run /etc/init.d scripts in the proper \ | 5 | to switch roles, and run_init to run /etc/init.d scripts in the proper \ |
6 | context." | 6 | context." |
7 | SECTION = "base" | 7 | SECTION = "base" |
8 | PR = "r3" | 8 | PR = "r4" |
9 | LICENSE = "GPLv2+" | 9 | LICENSE = "GPLv2+" |
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" |
11 | 11 | ||
@@ -38,6 +38,8 @@ RDEPENDS_${BPN} += "\ | |||
38 | " | 38 | " |
39 | RDEPENDS_${BPN} += "setools" | 39 | RDEPENDS_${BPN} += "setools" |
40 | 40 | ||
41 | WARN_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${WARN_QA}', d)}" | ||
42 | ERROR_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${ERROR_QA}', d)}" | ||
41 | 43 | ||
42 | PACKAGES =+ "${PN}-python ${PN}-sandbox" | 44 | PACKAGES =+ "${PN}-python ${PN}-sandbox" |
43 | FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" | 45 | 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 \ | |||
5 | to switch roles, and run_init to run /etc/init.d scripts in the proper \ | 5 | to switch roles, and run_init to run /etc/init.d scripts in the proper \ |
6 | context." | 6 | context." |
7 | SECTION = "base" | 7 | SECTION = "base" |
8 | PR = "r3" | 8 | PR = "r4" |
9 | LICENSE = "GPLv2+" | 9 | LICENSE = "GPLv2+" |
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" |
11 | DEFAULT_PREFERENCE = "-1" | 11 | DEFAULT_PREFERENCE = "-1" |
@@ -39,6 +39,8 @@ RDEPENDS_${BPN} += "\ | |||
39 | " | 39 | " |
40 | RDEPENDS_${BPN} += "setools" | 40 | RDEPENDS_${BPN} += "setools" |
41 | 41 | ||
42 | WARN_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${WARN_QA}', d)}" | ||
43 | ERROR_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${ERROR_QA}', d)}" | ||
42 | 44 | ||
43 | PACKAGES =+ "${PN}-python ${PN}-sandbox" | 45 | PACKAGES =+ "${PN}-python ${PN}-sandbox" |
44 | FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" | 46 | FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" |