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:42:58 +0800 |
commit | 90cfe5774b1269031b3a65876bc791036c7322c3 (patch) | |
tree | 4a9945dc551ed63c81c82915956ca81608474471 /recipes-connectivity/openssh | |
parent | 9468ed53d978f0d304fd789c90f265ac567f98a3 (diff) | |
download | meta-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>
Diffstat (limited to 'recipes-connectivity/openssh')
-rw-r--r-- | recipes-connectivity/openssh/openssh_6.1p1.bbappend | 6 |
1 files changed, 3 insertions, 3 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 @@ | |||
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:')}" | ||