update buildroot to 2017.02.11
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
Disable generation of documentation
|
||||
|
||||
Generation of documentation is not necessary in Buildroot, disable it completely.
|
||||
|
||||
Signed-off-by: Dmitry Golubovsky <golubovsky@gmail.com>
|
||||
Signed-off-by: Brendan Heading <brendanheading@gmail.com>
|
||||
|
||||
Upstream-status: inappropriate
|
||||
|
||||
diff -urN a/doc/Makefile.am b/doc/Makefile.am
|
||||
--- a/doc/Makefile.am 2012-08-15 06:08:43.000000000 -0500
|
||||
+++ b/doc/Makefile.am 2013-07-17 09:54:53.000000000 -0500
|
||||
@@ -2,8 +2,6 @@
|
||||
# Copyright (c) 2005, 2006 Thorsten Kukuk <kukuk@suse.de>
|
||||
#
|
||||
|
||||
-SUBDIRS = man specs sag adg mwg
|
||||
-
|
||||
CLEANFILES = *~
|
||||
|
||||
dist_html_DATA = index.html
|
||||
@@ -11,11 +9,4 @@
|
||||
#######################################################
|
||||
|
||||
releasedocs: all
|
||||
- $(mkinstalldirs) $(top_builddir)/Linux-PAM-$(VERSION)/doc/specs
|
||||
- cp -av specs/draft-morgan-pam-current.txt \
|
||||
- $(top_builddir)/Linux-PAM-$(VERSION)/doc/specs/
|
||||
- cp -av $(srcdir)/specs/rfc86.0.txt \
|
||||
- $(top_builddir)/Linux-PAM-$(VERSION)/doc/specs/
|
||||
- make -C sag releasedocs
|
||||
- make -C adg releasedocs
|
||||
- make -C mwg releasedocs
|
||||
+ /bin/true
|
||||
@@ -0,0 +1,49 @@
|
||||
ruserok is not available/functional in uclibc, provide conditions
|
||||
for compilation where needed.
|
||||
|
||||
Patch originally by Dmitry Golubovsky <golubovsky@gmail.com> -
|
||||
porting to linux-pam 1.2.1.
|
||||
|
||||
Signed-off-by: Brendan Heading <brendanheading@gmail.com>
|
||||
|
||||
Upstream-status: pending
|
||||
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
modules/pam_rhosts/pam_rhosts.c | 6 +++++-
|
||||
2 files changed, 6 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 08e4530..fd2fd23 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -542,7 +542,7 @@ AC_CHECK_FUNCS(fseeko getdomainname gethostname gettimeofday lckpwdf mkdir selec
|
||||
AC_CHECK_FUNCS(strcspn strdup strspn strstr strtol uname)
|
||||
AC_CHECK_FUNCS(getutent_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r)
|
||||
AC_CHECK_FUNCS(getgrouplist getline getdelim)
|
||||
-AC_CHECK_FUNCS(inet_ntop inet_pton innetgr ruserok_af)
|
||||
+AC_CHECK_FUNCS(inet_ntop inet_pton innetgr ruserok_af ruserok)
|
||||
|
||||
AC_CHECK_FUNCS(unshare, [UNSHARE=yes], [UNSHARE=no])
|
||||
AM_CONDITIONAL([HAVE_UNSHARE], [test "$UNSHARE" = yes])
|
||||
diff --git a/modules/pam_rhosts/pam_rhosts.c b/modules/pam_rhosts/pam_rhosts.c
|
||||
index bc9e76f..909db29 100644
|
||||
--- a/modules/pam_rhosts/pam_rhosts.c
|
||||
+++ b/modules/pam_rhosts/pam_rhosts.c
|
||||
@@ -114,8 +114,12 @@ int pam_sm_authenticate (pam_handle_t *pamh, int flags, int argc,
|
||||
#ifdef HAVE_RUSEROK_AF
|
||||
retval = ruserok_af (rhost, as_root, ruser, luser, PF_UNSPEC);
|
||||
#else
|
||||
+ #ifdef HAVE_RUSEROK
|
||||
retval = ruserok (rhost, as_root, ruser, luser);
|
||||
-#endif
|
||||
+ #else
|
||||
+ retval = -1;
|
||||
+ #endif /* HAVE_RUSEROK */
|
||||
+#endif /*HAVE_RUSEROK_AF */
|
||||
if (retval != 0) {
|
||||
if (!opt_silent || opt_debug)
|
||||
pam_syslog(pamh, LOG_WARNING, "denied access to %s@%s as %s",
|
||||
--
|
||||
2.4.3
|
||||
|
||||
16
bsp/buildroot-2017.02.11/package/linux-pam/Config.in
Normal file
16
bsp/buildroot-2017.02.11/package/linux-pam/Config.in
Normal file
@@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_LINUX_PAM
|
||||
bool "linux-pam"
|
||||
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
|
||||
select BR2_PACKAGE_FLEX
|
||||
depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on !BR2_TOOLCHAIN_USES_MUSL
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
A Security Framework that Provides Authentication for Applications
|
||||
|
||||
http://linux-pam.org
|
||||
|
||||
comment "linux-pam needs a uClibc or glibc toolchain w/ wchar, locale, dynamic library"
|
||||
depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
|
||||
|| BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally computed hashes, not provided by upstream
|
||||
sha256 241aed1ef522f66ed672719ecf2205ec513fd0075ed80cda8e086a5b1a01d1bb Linux-PAM-1.3.0.tar.bz2
|
||||
58
bsp/buildroot-2017.02.11/package/linux-pam/linux-pam.mk
Normal file
58
bsp/buildroot-2017.02.11/package/linux-pam/linux-pam.mk
Normal file
@@ -0,0 +1,58 @@
|
||||
################################################################################
|
||||
#
|
||||
# linux-pam
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LINUX_PAM_VERSION = 1.3.0
|
||||
LINUX_PAM_SOURCE = Linux-PAM-$(LINUX_PAM_VERSION).tar.bz2
|
||||
LINUX_PAM_SITE = http://linux-pam.org/library
|
||||
LINUX_PAM_INSTALL_STAGING = YES
|
||||
LINUX_PAM_CONF_OPTS = \
|
||||
--disable-prelude \
|
||||
--disable-isadir \
|
||||
--disable-nis \
|
||||
--disable-db \
|
||||
--disable-regenerate-docu \
|
||||
--enable-securedir=/lib/security \
|
||||
--libdir=/lib
|
||||
LINUX_PAM_DEPENDENCIES = flex host-flex host-pkgconf
|
||||
LINUX_PAM_AUTORECONF = YES
|
||||
LINUX_PAM_LICENSE = BSD-3c
|
||||
LINUX_PAM_LICENSE_FILES = Copyright
|
||||
|
||||
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
||||
LINUX_PAM_DEPENDENCIES += gettext
|
||||
LINUX_PAM_MAKE_OPTS += LIBS=-lintl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
||||
LINUX_PAM_CONF_OPTS += --enable-selinux
|
||||
LINUX_PAM_DEPENDENCIES += libselinux
|
||||
define LINUX_PAM_SELINUX_PAMFILE_TWEAK
|
||||
$(SED) 's/^# \(.*pam_selinux.so.*\)$$/\1/' \
|
||||
$(TARGET_DIR)/etc/pam.d/login
|
||||
endef
|
||||
else
|
||||
LINUX_PAM_CONF_OPTS += --disable-selinux
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_AUDIT),y)
|
||||
LINUX_PAM_CONF_OPTS += --enable-audit
|
||||
LINUX_PAM_DEPENDENCIES += audit
|
||||
else
|
||||
LINUX_PAM_CONF_OPTS += --disable-audit
|
||||
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
|
||||
$(LINUX_PAM_SELINUX_PAMFILE_TWEAK)
|
||||
endef
|
||||
|
||||
LINUX_PAM_POST_INSTALL_TARGET_HOOKS += LINUX_PAM_INSTALL_CONFIG
|
||||
|
||||
$(eval $(autotools-package))
|
||||
12
bsp/buildroot-2017.02.11/package/linux-pam/login.pam
Normal file
12
bsp/buildroot-2017.02.11/package/linux-pam/login.pam
Normal file
@@ -0,0 +1,12 @@
|
||||
auth required pam_unix.so nullok
|
||||
|
||||
account required pam_unix.so
|
||||
|
||||
password required pam_unix.so nullok
|
||||
|
||||
# session required pam_selinux.so close
|
||||
session required pam_limits.so
|
||||
session required pam_env.so
|
||||
session required pam_unix.so
|
||||
session optional pam_lastlog.so
|
||||
# session required pam_selinux.so open
|
||||
7
bsp/buildroot-2017.02.11/package/linux-pam/other.pam
Normal file
7
bsp/buildroot-2017.02.11/package/linux-pam/other.pam
Normal file
@@ -0,0 +1,7 @@
|
||||
auth required pam_deny.so
|
||||
|
||||
account required pam_deny.so
|
||||
|
||||
password required pam_deny.so
|
||||
|
||||
session required pam_deny.so
|
||||
Reference in New Issue
Block a user