mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
package/linux-pam: install files into /usr/lib/pam.d
The /etc directory is reserved for host-specific, system-wide configuration maintained by the local administrator. Buildroot packages should avoid placing files in /etc and instead install them under /usr whenever possible. Signed-off-by: Raphael Pavlidis <raphael.pavlidis@gmail.com> Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
This commit is contained in:
committed by
Marcus Hoffmann
parent
30e38505e4
commit
9408bc0161
@@ -31,7 +31,7 @@ LINUX_PAM_CONF_OPTS += -Dselinux=enabled
|
||||
LINUX_PAM_DEPENDENCIES += libselinux
|
||||
define LINUX_PAM_SELINUX_PAMFILE_TWEAK
|
||||
$(SED) 's/^# \(.*pam_selinux.so.*\)$$/\1/' \
|
||||
$(TARGET_DIR)/etc/pam.d/login
|
||||
$(TARGET_DIR)/usr/lib/pam.d/login
|
||||
endef
|
||||
else
|
||||
LINUX_PAM_CONF_OPTS += -Dselinux=disabled
|
||||
@@ -55,7 +55,7 @@ ifeq ($(BR2_PACKAGE_LINUX_PAM_LASTLOG),y)
|
||||
LINUX_PAM_CONF_OPTS += -Dpam_lastlog=enabled
|
||||
define LINUX_PAM_LASTLOG_PAMFILE_TWEAK
|
||||
$(SED) 's/^# \(.*pam_lastlog.so.*\)$$/\1/' \
|
||||
$(TARGET_DIR)/etc/pam.d/login
|
||||
$(TARGET_DIR)/usr/lib/pam.d/login
|
||||
endef
|
||||
else
|
||||
LINUX_PAM_CONF_OPTS += -Dpam_lastlog=disabled
|
||||
@@ -63,10 +63,10 @@ endif
|
||||
|
||||
# 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
|
||||
$(INSTALL) -m 0644 -D $(LINUX_PAM_PKGDIR)/login.pam \
|
||||
$(TARGET_DIR)/usr/lib/pam.d/login
|
||||
$(INSTALL) -m 0644 -D $(LINUX_PAM_PKGDIR)/other.pam \
|
||||
$(TARGET_DIR)/usr/lib/pam.d/other
|
||||
$(LINUX_PAM_LASTLOG_PAMFILE_TWEAK)
|
||||
$(LINUX_PAM_SELINUX_PAMFILE_TWEAK)
|
||||
endef
|
||||
|
||||
Reference in New Issue
Block a user