summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2013-09-23 07:51:46 -0500
committerJoe MacDonald <joe@deserted.net>2013-10-02 13:24:46 -0400
commit392a44eeb60ae97d6976c9f9e91e03f695395a8b (patch)
treedffaeeb64c52c2713194b15b9febe9955980a82b
parent212b3d08226fc50ace52dd2a316ee52fad121a7b (diff)
downloadmeta-selinux-392a44eeb60ae97d6976c9f9e91e03f695395a8b.tar.gz
policycoreutils: avoid shell for checking target-special actions
do_install was modified to only do the special actions in the target case, instead of using shell to check what mode we were running in. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r--recipes-security/selinux/policycoreutils.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/recipes-security/selinux/policycoreutils.inc b/recipes-security/selinux/policycoreutils.inc
index 1acc19f..dfd65e3 100644
--- a/recipes-security/selinux/policycoreutils.inc
+++ b/recipes-security/selinux/policycoreutils.inc
@@ -103,9 +103,7 @@ do_install_virtclass-native() {
103 done 103 done
104} 104}
105 105
106do_install_append() { 106do_install_append_class-target() {
107 test "${CLASSOVERRIDE}" = "class-native" && return 0
108
109 if [ -e ${WORKDIR}/pam.d ]; then 107 if [ -e ${WORKDIR}/pam.d ]; then
110 install -d ${D}${sysconfdir}/pam.d/ 108 install -d ${D}${sysconfdir}/pam.d/
111 install -m 0644 ${WORKDIR}/pam.d/* ${D}${sysconfdir}/pam.d/ 109 install -m 0644 ${WORKDIR}/pam.d/* ${D}${sysconfdir}/pam.d/