@@ -62,6 +62,21 @@ config BR2_PACKAGE_BUSYBOX_WATCHDOG
Install the watchdog daemon startup script,
that just start at the boot the busybox watchdog daemon.
+config BR2_PACKAGE_BUSYBOX_PAM
+ bool "Enable PAM support in Busybox"
+ default n
+ depends on BR2_PACKAGE_LINUX_PAM
+ help
+ If this item is selected, Busybox login will use the PAM stack
+ for local logins. Local logins with null password are allowed
+ for users with records in /etc/passwd ("default" and "root")
+ per the /etc/pam.d/login file.
+ The default PAM configuration file /etc/pam.d/default requires
+ user accounts with nonzero length passwords.
+ These files are provided by the linux-pam package. Buildroot
+ users opting to use PAM are strongly advised to supply their
+ own PAM configuration files for proper authentication model.
+
if BR2_PACKAGE_BUSYBOX_WATCHDOG
config BR2_PACKAGE_BUSYBOX_WATCHDOG_PERIOD
@@ -164,6 +164,17 @@ define BUSYBOX_INSTALL_WATCHDOG_SCRIPT
endef
endif
+ifeq ($(BR2_PACKAGE_BUSYBOX_PAM),y)
+BUSYBOX_DEPENDENCIES += linux-pam
+define BUSYBOX_ENABLE_PAM
+ $(call KCONFIG_ENABLE_OPT,CONFIG_PAM,$(BUSYBOX_BUILD_CONFIG))
+endef
+else
+define BUSYBOX_ENABLE_PAM
+ $(call KCONFIG_DISABLE_OPT,CONFIG_PAM,$(BUSYBOX_BUILD_CONFIG))
+endef
+endif
+
# We do this here to avoid busting a modified .config in configure
BUSYBOX_POST_EXTRACT_HOOKS += BUSYBOX_COPY_CONFIG
@@ -179,6 +190,7 @@ define BUSYBOX_CONFIGURE_CMDS
$(BUSYBOX_DISABLE_MMU_APPLETS)
$(BUSYBOX_SET_INIT)
$(BUSYBOX_SET_WATCHDOG)
+ $(BUSYBOX_ENABLE_PAM)
@yes "" | $(MAKE) ARCH=$(KERNEL_ARCH) CROSS_COMPILE="$(TARGET_CROSS)" \
-C $(@D) oldconfig
endef
Signed-off-by: Dmitry <golubovsky@gmail.com> --- package/busybox/Config.in | 15 +++++++++++++++ package/busybox/busybox.mk | 12 ++++++++++++ 2 files changed, 27 insertions(+), 0 deletions(-)