Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry <golubovsky@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] Provide PAM default configuration files when building linux-pam package
Date: Mon,  3 Sep 2012 23:28:42 -0400	[thread overview]
Message-ID: <1346729322-17868-2-git-send-email-golubovsky@gmail.com> (raw)
In-Reply-To: <1346729322-17868-1-git-send-email-golubovsky@gmail.com>

Signed-off-by: Dmitry <golubovsky@gmail.com>
---
 package/linux-pam/default      |    8 ++++++++
 package/linux-pam/linux-pam.mk |    7 +++++++
 package/linux-pam/login        |    9 +++++++++
 3 files changed, 24 insertions(+), 0 deletions(-)
 create mode 100644 package/linux-pam/default
 create mode 100644 package/linux-pam/login

diff --git a/package/linux-pam/default b/package/linux-pam/default
new file mode 100644
index 0000000..0bd5ba0
--- /dev/null
+++ b/package/linux-pam/default
@@ -0,0 +1,8 @@
+#
+# default; standard UN*X access
+#
+auth     required       pam_unix.so
+account  required       pam_unix.so
+password required       pam_unix.so
+session  required       pam_unix.so
+
diff --git a/package/linux-pam/linux-pam.mk b/package/linux-pam/linux-pam.mk
index 48cb073..2807bc1 100644
--- a/package/linux-pam/linux-pam.mk
+++ b/package/linux-pam/linux-pam.mk
@@ -24,4 +24,11 @@ ifeq ($(BR2_PACKAGE_LIBINTL),y)
 	LINUX_PAM_MAKE_OPT += LIBS=-lintl
 endif
 
+define LINUX_PAM_CONFFILES
+	$(INSTALL) -D -m 0644 package/linux-pam/default $(TARGET_DIR)/etc/pam.d/default
+	$(INSTALL) -D -m 0644 package/linux-pam/login $(TARGET_DIR)/etc/pam.d/login
+endef
+
+LINUX_PAM_POST_INSTALL_TARGET_HOOKS += LINUX_PAM_CONFFILES
+
 $(eval $(autotools-package))
diff --git a/package/linux-pam/login b/package/linux-pam/login
new file mode 100644
index 0000000..d65a9d4
--- /dev/null
+++ b/package/linux-pam/login
@@ -0,0 +1,9 @@
+#
+# login: allow local logins to users with entries in /etc/passwd and
+# /etc/shadow even with null password
+#
+auth      required       pam_unix.so nullok
+account   required       pam_unix.so nullok
+password  required       pam_unix.so nullok
+session   required       pam_unix.so nullok
+
-- 
1.7.2.5

  reply	other threads:[~2012-09-04  3:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-04  3:28 [Buildroot] [PATCH 1/2] PAM support in Busybox if linux-pam is built Dmitry
2012-09-04  3:28 ` Dmitry [this message]
2012-09-04 17:02   ` [Buildroot] [PATCH 2/2] Provide PAM default configuration files when building linux-pam package Yann E. MORIN
2012-09-04 17:33     ` Dmitry Golubovsky
2012-09-04 17:52       ` Yann E. MORIN
2012-09-04 18:03         ` Dmitry Golubovsky
2012-09-04 18:13 ` [Buildroot] [PATCH 1/2] PAM support in Busybox if linux-pam is built Yann E. MORIN
2012-09-04 18:23   ` Dmitry Golubovsky
2012-09-05  3:19   ` Dmitry Golubovsky
  -- strict thread matches above, loose matches on Subject: below --
2012-08-15  3:33 Dmitry
2012-08-15  3:33 ` [Buildroot] [PATCH 2/2] Provide PAM default configuration files when building linux-pam package Dmitry
2012-08-23 21:22   ` Arnout Vandecappelle
2012-08-23 22:33     ` Dmitry Golubovsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1346729322-17868-2-git-send-email-golubovsky@gmail.com \
    --to=golubovsky@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox