--- /dev/null
+auth required pam_securetty.so
+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 sufficient pam_rootok.so
+auth required pam_wheel.so use_uid
+auth required pam_env.so
+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
UTIL_LINUX_PRE_PATCH_HOOKS += UTIL_LINUX_DISABLE_TOOLS
endif
+# 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 \
+ $(TARGET_DIR)/etc/pam.d/su-l
+endef
+endif
+
+UTIL_LINUX_POST_INSTALL_TARGET_HOOKS += UTIL_LINUX_INSTALL_PAMFILES
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))