SHA256
1
0
forked from pool/pam

Accepting request 74833 from Linux-PAM

OBS-URL: https://build.opensuse.org/request/show/74833
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pam?expand=0&rev=47
This commit is contained in:
Sascha Peilicke 2011-07-11 06:52:31 +00:00 committed by Git OBS Bridge
commit c2f1713b8a
7 changed files with 19 additions and 49 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4afc3c02f295ed1a3e09876da7eb8738ce48a3c8ea1bc0861e4999730489df12
size 495577

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ab4e684846e3a1cdacc516d0626df81568ae2eded557a03c958080293ac587b8
size 1132897

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a3bcdbcede0865f0ce40aa1c1363afc2c51a878334a31689f959b0bdcf53cc6e
size 498363

3
Linux-PAM-1.1.4.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:13cf4775ffd4fdd8c79a88610d569ebacef738eb2be729eaf8655c942bcd9e50
size 1123198

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Jun 27 15:29:11 CEST 2011 - kukuk@suse.de
- Update to version 1.1.4
* pam_securetty: Honour console= kernel option, add noconsole option
* pam_limits: Add %group syntax, drop change_uid option, add set_all option
* Lot of small bug fixes
* Add support for libtirpc
- Build against libtirpc
-------------------------------------------------------------------
Thu May 26 09:37:34 UTC 2011 - cfarrell@novell.com

View File

@ -23,10 +23,11 @@ Name: pam
Url: http://www.kernel.org/pub/linux/libs/pam/
BuildRequires: bison cracklib-devel db-devel flex
BuildRequires: audit-devel
BuildRequires: libtirpc-devel
%if %{enable_selinux}
BuildRequires: libselinux-devel
%endif
%define libpam_so_version 0.83.0
%define libpam_so_version 0.83.1
%define libpam_misc_so_version 0.82.0
%define libpamc_so_version 0.82.1
License: GPL-2.0+ or BSD-3-Clause
@ -37,7 +38,7 @@ AutoReqProv: on
Obsoletes: pam-64bit
%endif
#
Version: 1.1.3
Version: 1.1.4
Release: 7
Summary: A Security Tool that Provides Authentication for Applications
Source: Linux-PAM-%{version}.tar.bz2
@ -51,8 +52,6 @@ Source7: common-session.pamd
Source8: etc.environment
Source9: baselibs.conf
Patch0: pam_tally-deprecated.diff
# fix for bnc#673826 (pam_listfile logging)
Patch1: pam_listfile-quiet.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -102,7 +101,6 @@ building both PAM-aware applications and modules for use with PAM.
%prep
%setup -q -n Linux-PAM-%{version} -b 1
%patch0 -p0
%patch1 -p1
%build
CFLAGS="$RPM_OPT_FLAGS -DNDEBUG" \

View File

@ -1,38 +0,0 @@
diff -u -r Linux-PAM-1.1.3.orig/modules/pam_listfile/pam_listfile.c Linux-PAM-1.1.3/modules/pam_listfile/pam_listfile.c
--- Linux-PAM-1.1.3.orig/modules/pam_listfile/pam_listfile.c 2009-12-08 15:41:41.000000000 +0100
+++ Linux-PAM-1.1.3/modules/pam_listfile/pam_listfile.c 2011-02-23 13:27:04.356265509 +0100
@@ -78,8 +78,14 @@
{
const char *junk;
+ /* option quiet has no value */
+ if(!strcmp(argv[i],"quiet")) {
+ quiet = 1;
+ continue;
+ }
+
memset(mybuf,'\0',sizeof(mybuf));
- memset(myval,'\0',sizeof(mybuf));
+ memset(myval,'\0',sizeof(myval));
junk = strchr(argv[i], '=');
if((junk == NULL) || (junk - argv[i]) >= (int) sizeof(mybuf)) {
pam_syslog(pamh,LOG_ERR, "Bad option: \"%s\"",
@@ -142,8 +148,6 @@
apply_type=APPLY_TYPE_USER;
strncpy(apply_val,myval,sizeof(apply_val)-1);
}
- } else if (!strcmp(mybuf,"quiet")) {
- quiet = 1;
} else {
free(ifname);
pam_syslog(pamh,LOG_ERR, "Unknown option: %s",mybuf);
@@ -283,7 +287,8 @@
ifname, citem, citemp, sense);
#endif
if(lstat(ifname,&fileinfo)) {
- pam_syslog(pamh,LOG_ERR, "Couldn't open %s",ifname);
+ if(!quiet)
+ pam_syslog(pamh,LOG_ERR, "Couldn't open %s",ifname);
free(ifname);
return onerr;
}