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
--- /dev/null
+auth required pam_unix.so nullok
+
+account required pam_unix.so
+
+password required pam_unix.so nullok
+
+session required pam_limits.so
+session required pam_env.so
+session required pam_unix.so
+session optional pam_lastlog.so
+++ /dev/null
-auth required pam_unix.so nullok
-
-account required pam_unix.so
-
-password required pam_unix.so nullok
-
-session required pam_limits.so
-session required pam_env.so
-session required pam_unix.so
-session optional pam_lastlog.so
# Install PAM configuration files
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS),y)
define UTIL_LINUX_INSTALL_PAMFILES
- $(INSTALL) -m 0644 package/util-linux/login.pam \
- $(TARGET_DIR)/etc/pam.d/login
$(INSTALL) -m 0644 package/util-linux/su.pam \
$(TARGET_DIR)/etc/pam.d/su
$(INSTALL) -m 0644 package/util-linux/su.pam \