diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2013-04-12 15:54:28 +0800 |
---|---|---|
committer | Xin Ouyang <Xin.Ouyang@windriver.com> | 2013-04-15 10:44:20 +0800 |
commit | 290d6138f453e4e55d8ac28a3935f386cffccd80 (patch) | |
tree | 5b82a31245a98209cd0865b2c902ee3df33cc402 | |
parent | d69bc8bdb2f4cd7f08b029e5991fabfb08c6e166 (diff) | |
download | meta-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.bbappend | 6 | ||||
-rw-r--r-- | recipes-extended/shadow/shadow_4.1.4.3.bbappend | 6 |
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 @@ | |||
1 | PR .= ".3" | 1 | PR .= ".4" |
2 | |||
3 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
4 | 2 | ||
5 | inherit with-selinux | 3 | inherit with-selinux |
4 | |||
5 | FILESEXTRAPATHS_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 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | 1 | PR .= ".4" |
2 | |||
3 | PR .= ".3" | ||
4 | 2 | ||
5 | inherit with-selinux with-audit | 3 | inherit with-selinux with-audit |
4 | |||
5 | FILESEXTRAPATHS_prepend := "${@target_selinux(d, '${THISDIR}/files:')}" | ||