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>
This commit is contained in:
Xin Ouyang 2013-04-12 15:54:28 +08:00
parent f63df30423
commit 7b3f6a003c
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
PR .= ".3"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
PR .= ".4"
inherit with-selinux
FILESEXTRAPATHS_prepend := "${@target_selinux(d, '${THISDIR}/files:')}"

View File

@ -1,5 +1,5 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
PR .= ".3"
PR .= ".4"
inherit with-selinux with-audit
FILESEXTRAPATHS_prepend := "${@target_selinux(d, '${THISDIR}/files:')}"