Commit 72b3c1db authored by Gustavo Zacarias's avatar Gustavo Zacarias Committed by Peter Korsgaard
Browse files

linux-pam: install default config



Install default "other" configuration file that denies everything not
handled by other specific configurations.

Signed-off-by: default avatarGustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 30c51053
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -26,4 +26,12 @@ ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
	LINUX_PAM_MAKE_OPT += LIBS=-lintl
endif

# Install default pam config (deny everything)
define LINUX_PAM_INSTALL_CONFIG
	$(INSTALL) -m 0644 -D package/linux-pam/other.pam \
		$(TARGET_DIR)/etc/pam.d/other
endef

LINUX_PAM_POST_INSTALL_TARGET_HOOKS += LINUX_PAM_INSTALL_CONFIG

$(eval $(autotools-package))
+7 −0
Original line number Diff line number Diff line
auth		required	pam_deny.so

account		required	pam_deny.so

password	required	pam_deny.so

session		required	pam_deny.so