aboutsummaryrefslogtreecommitdiff
path: root/package/linux-pam/linux-pam.mk
diff options
context:
space:
mode:
authorGravatar Gustavo Zacarias <gustavo@zacarias.com.ar>2016-03-28 21:39:56 -0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-03-29 02:46:31 +0200
commitb71a0176c4ca8952c364aad693136c69a268915f (patch)
treebb229d67f6a3cafb09cfe339d6c73326b0845672 /package/linux-pam/linux-pam.mk
parentbf8909ee4c7d9d31b8eb4d3c9264fb87d54f6af2 (diff)
downloadbuildroot-b71a0176c4ca8952c364aad693136c69a268915f.tar.gz
buildroot-b71a0176c4ca8952c364aad693136c69a268915f.tar.bz2
linux-pam: install login.pam from here
Instead of installing login.pam (/etc/pam.d/login) from util-linux conditionally do so unconditionally from linux-pam. If busybox login is pam-enabled (linux-pam package enabled) it will be required, otherwise it will lead to a system where login won't work, and if util-linux is enabled it will supercede busybox login and will be necesarry regardless. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/linux-pam/linux-pam.mk')
-rw-r--r--package/linux-pam/linux-pam.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/linux-pam/linux-pam.mk b/package/linux-pam/linux-pam.mk
index cf1b5b7b11..71c5490c7c 100644
--- a/package/linux-pam/linux-pam.mk
+++ b/package/linux-pam/linux-pam.mk
@@ -26,8 +26,10 @@ LINUX_PAM_DEPENDENCIES += gettext
LINUX_PAM_MAKE_OPTS += LIBS=-lintl
endif
-# Install default pam config (deny everything)
+# Install default pam config (deny everything except login)
define LINUX_PAM_INSTALL_CONFIG
+ $(INSTALL) -m 0644 -D package/linux-pam/login.pam \
+ $(TARGET_DIR)/etc/pam.d/login
$(INSTALL) -m 0644 -D package/linux-pam/other.pam \
$(TARGET_DIR)/etc/pam.d/other
endef