diff options
| author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-03-21 16:31:31 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-21 17:15:30 +0000 |
| commit | e2d24f517206f6b8d9767c5d6d24795be5969a96 (patch) | |
| tree | 044c5b07b154bf25a4f9c56e2d8f5d05d6b10d4f /meta/classes | |
| parent | 1f44904daea0c6dddde5ece065a95725722274a8 (diff) | |
| download | poky-e2d24f517206f6b8d9767c5d6d24795be5969a96.tar.gz | |
classes/image: disable pam nullok_secure with debug-tweaks
If you want passwordless logins to work with pam enabled, then you can't
have "nullok_secure" enabled on pam_unix entries. Add some
postprocessing to change these to "nullok" when debug-tweaks is in
IMAGE_FEATURES, in order to make passwordless logins with PAM work
again.
Fixes [YOCTO #5973].
(From OE-Core rev: a973fe10305c7d080d5c017ddd9b2bd860221659)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/image.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 9a04288ba6..3436624c9d 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
| @@ -298,6 +298,10 @@ ssh_allow_empty_password () { | |||
| 298 | printf '\nDROPBEAR_EXTRA_ARGS="-B"\n' >> ${IMAGE_ROOTFS}${sysconfdir}/default/dropbear | 298 | printf '\nDROPBEAR_EXTRA_ARGS="-B"\n' >> ${IMAGE_ROOTFS}${sysconfdir}/default/dropbear |
| 299 | fi | 299 | fi |
| 300 | fi | 300 | fi |
| 301 | |||
| 302 | if [ -d ${IMAGE_ROOTFS}${sysconfdir}/pam.d ] ; then | ||
| 303 | sed -i 's/nullok_secure/nullok/' ${IMAGE_ROOTFS}${sysconfdir}/pam.d/* | ||
| 304 | fi | ||
| 301 | } | 305 | } |
| 302 | 306 | ||
| 303 | # Enable postinst logging if debug-tweaks is enabled | 307 | # Enable postinst logging if debug-tweaks is enabled |
