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 | |
| 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>
| -rw-r--r-- | recipes-connectivity/openssh/openssh_6.1p1.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_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:')}" | ||
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:')}" | ||
