summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Ouyang <Xin.Ouyang@windriver.com>2013-04-12 15:54:28 +0800
committerXin Ouyang <Xin.Ouyang@windriver.com>2013-04-15 10:44:20 +0800
commit290d6138f453e4e55d8ac28a3935f386cffccd80 (patch)
tree5b82a31245a98209cd0865b2c902ee3df33cc402
parentd69bc8bdb2f4cd7f08b029e5991fabfb08c6e166 (diff)
downloadmeta-selinux-290d6138f453e4e55d8ac28a3935f386cffccd80.tar.gz
shadow/openssh: use pam_selinux only if target_selinux enabled
We add pam conf files for login/sshd to use pam_selinux module. When selinux is not in DISTRO_FEATURES, pam-plugin-selinux would not be built, this will cause runtime errors to not allow users to login in on the console or ssh. Use @target_selinux() to enable these pam conf files conditionally. Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
-rw-r--r--recipes-connectivity/openssh/openssh_5.9p1.bbappend6
-rw-r--r--recipes-extended/shadow/shadow_4.1.4.3.bbappend6
2 files changed, 6 insertions, 6 deletions
diff --git a/recipes-connectivity/openssh/openssh_5.9p1.bbappend b/recipes-connectivity/openssh/openssh_5.9p1.bbappend
index 698f4ab..43d459c 100644
--- a/recipes-connectivity/openssh/openssh_5.9p1.bbappend
+++ b/recipes-connectivity/openssh/openssh_5.9p1.bbappend
@@ -1,5 +1,5 @@
1PR .= ".3" 1PR .= ".4"
2
3FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
4 2
5inherit with-selinux 3inherit with-selinux
4
5FILESEXTRAPATHS_prepend := "${@target_selinux(d, '${THISDIR}/files:')}"
diff --git a/recipes-extended/shadow/shadow_4.1.4.3.bbappend b/recipes-extended/shadow/shadow_4.1.4.3.bbappend
index c2c3332..f871e67 100644
--- a/recipes-extended/shadow/shadow_4.1.4.3.bbappend
+++ b/recipes-extended/shadow/shadow_4.1.4.3.bbappend
@@ -1,5 +1,5 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/files:" 1PR .= ".4"
2
3PR .= ".3"
4 2
5inherit with-selinux with-audit 3inherit with-selinux with-audit
4
5FILESEXTRAPATHS_prepend := "${@target_selinux(d, '${THISDIR}/files:')}"