]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
shadow: Remove lastlog pam plugin on musl system
authorKhem Raj <raj.khem@gmail.com>
Sat, 2 Jan 2021 20:25:18 +0000 (12:25 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 3 Jan 2021 08:57:57 +0000 (08:57 +0000)
lastlog needs logwtmp which musl does not provide

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/shadow/shadow.inc

index f86e5e03c0f059b7a504645f24215f2392fc2d23..4ae7a78c52b63397b4eb9a5b38d1002f9a49a16d 100644 (file)
@@ -71,6 +71,8 @@ PAM_PLUGINS = "libpam-runtime \
                pam-plugin-shells \
                pam-plugin-rootok"
 
+PAM_PLUGINS_remove_libc-musl = "pam-plugin-lastlog"
+
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \
                    ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)}"
 PACKAGECONFIG_class-native ??= "${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)}"