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:42:58 +0800
commit90cfe5774b1269031b3a65876bc791036c7322c3 (patch)
tree4a9945dc551ed63c81c82915956ca81608474471
parent9468ed53d978f0d304fd789c90f265ac567f98a3 (diff)
downloadmeta-selinux-90cfe5774b1269031b3a65876bc791036c7322c3.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_6.1p1.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_6.1p1.bbappend b/recipes-connectivity/openssh/openssh_6.1p1.bbappend
index 698f4ab..43d459c 100644
--- a/recipes-connectivity/openssh/openssh_6.1p1.bbappend
+++ b/recipes-connectivity/openssh/openssh_6.1p1.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:')}"