Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] linux-pam: install login.pam from here
@ 2016-03-29  0:39 Gustavo Zacarias
  2016-03-29  0:48 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2016-03-29  0:39 UTC (permalink / raw)
  To: buildroot

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>
---
 package/linux-pam/linux-pam.mk              | 4 +++-
 package/{util-linux => linux-pam}/login.pam | 0
 package/util-linux/util-linux.mk            | 2 --
 3 files changed, 3 insertions(+), 3 deletions(-)
 rename package/{util-linux => linux-pam}/login.pam (100%)

diff --git a/package/linux-pam/linux-pam.mk b/package/linux-pam/linux-pam.mk
index cf1b5b7..71c5490 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
diff --git a/package/util-linux/login.pam b/package/linux-pam/login.pam
similarity index 100%
rename from package/util-linux/login.pam
rename to package/linux-pam/login.pam
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index 141dffd..a055d17 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -153,8 +153,6 @@ 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 \
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] linux-pam: install login.pam from here
  2016-03-29  0:39 [Buildroot] [PATCH] linux-pam: install login.pam from here Gustavo Zacarias
@ 2016-03-29  0:48 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-03-29  0:48 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 28 Mar 2016 21:39:56 -0300, Gustavo Zacarias wrote:
> 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>
> ---
>  package/linux-pam/linux-pam.mk              | 4 +++-
>  package/{util-linux => linux-pam}/login.pam | 0
>  package/util-linux/util-linux.mk            | 2 --
>  3 files changed, 3 insertions(+), 3 deletions(-)
>  rename package/{util-linux => linux-pam}/login.pam (100%)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-29  0:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-29  0:39 [Buildroot] [PATCH] linux-pam: install login.pam from here Gustavo Zacarias
2016-03-29  0:48 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox