NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/46801: redundant openpam_dynamic() messages on MKPIC=no environment



>Number:         46801
>Category:       lib
>Synopsis:       redundant openpam_dynamic() messages on MKPIC=no environment
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 14 18:25:00 +0000 2012
>Originator:     Izumi Tsutsui
>Release:        NetBSD 6.0_BETA2
>Organization:
>Environment:
System: NetBSD mirage 6.0_BETA2
Architecture: m68000, but possibly occurs on all ports with MKPIC=no
Machine: sun2
>Description:
On sun2, openpam stuff emits following error messages after login:

---
 :

Tue Aug 14 16:00:48 UTC 2012

NetBSD/sun2 (Amnesiac) (ttya)

login: root
Aug 14 16:01:00  login: in openpam_dynamic(): /usr/lib/security/pam_self.so: No 
such file or directory
Aug 14 16:01:00  login: in openpam_dynamic(): /usr/lib/security/pam_nologin.so: 
No such file or directory
Aug 14 16:01:00  login: in openpam_dynamic(): /usr/lib/security/pam_skey.so: No 
such file or directory
Aug 14 16:01:01  login: in openpam_dynamic(): /usr/lib/security/pam_krb5.so: No 
such file or directory
Aug 14 16:01:01  login: in openpam_dynamic(): /usr/lib/security/pam_afslog.so: 
No such file or directory
Aug 14 16:01:01  login: in openpam_dynamic(): /usr/lib/security/pam_unix.so: No 
such file or directory
Aug 14 16:01:01  login: in openpam_dynamic(): 
/usr/lib/security/pam_securetty.so: No such file or directory
Aug 14 16:01:01  login: in openpam_dynamic(): 
/usr/lib/security/pam_login_access.so: No such file or directory
Aug 14 16:01:01  login: in openpam_dynamic(): /usr/lib/security/pam_krb5.so: No 
such file or directory
Aug 14 16:01:01  login: in openpam_dynamic(): /usr/lib/security/pam_unix.so: No 
such file or directory
Aug 14 16:01:01  login: in openpam_dynamic(): /usr/lib/security/pam_lastlog.so: 
No such file or directory
Aug 14 16:01:01  login: in openpam_dynamic(): /usr/lib/security/pam_krb5.so: No 
such file or directory
Aug 14 16:01:02  login: in openpam_dynamic(): /usr/lib/security/pam_unix.so: No 
such file or directory
Aug 14 16:01:02  login: ROOT LOGIN (root) on tty ttya
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 6.0_BETA2 (GENERIC) #0: Wed Aug 15 00:37:06 JST 2012

Welcome to NetBSD!

 :
---

>How-To-Repeat:
Build sun2 liveimage by "build.sh -m sun2 -U release live-image"
and boot TME sun2 emulation with it.
>Fix:
Just use PAM_LOG_DEBUG instead of PAM_LOG_ERROR as before for workaround?
("goto err" is used in case of asnprintf(3) error and dlopen failure)

Index: external/bsd/openpam/dist/lib/openpam_dynamic.c
===================================================================
RCS file: /cvsroot/src/external/bsd/openpam/dist/lib/openpam_dynamic.c,v
retrieving revision 1.3
diff -u -p -r1.3 openpam_dynamic.c
--- external/bsd/openpam/dist/lib/openpam_dynamic.c     3 Jan 2012 18:56:49 
-0000       1.3
+++ external/bsd/openpam/dist/lib/openpam_dynamic.c     14 Aug 2012 18:14:15 
-0000
@@ -127,7 +127,7 @@ buf_err:
                dlclose(dlh);
        FREE(module);
 err:
-       openpam_log(PAM_LOG_ERROR, "%s: %s", epath, strerror(errno));
+       openpam_log(PAM_LOG_DEBUG, "%s: %s", epath, strerror(errno));
        return (NULL);
 }
 



Home | Main Index | Thread Index | Old Index