mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
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:
parent
f63df30423
commit
7b3f6a003c
|
|
@ -1,5 +1,5 @@
|
|||
PR .= ".3"
|
||||
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||
PR .= ".4"
|
||||
|
||||
inherit with-selinux
|
||||
|
||||
FILESEXTRAPATHS_prepend := "${@target_selinux(d, '${THISDIR}/files:')}"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||
|
||||
PR .= ".3"
|
||||
PR .= ".4"
|
||||
|
||||
inherit with-selinux with-audit
|
||||
|
||||
FILESEXTRAPATHS_prepend := "${@target_selinux(d, '${THISDIR}/files:')}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user