|
Message-ID: <20120514170931.5ebe58cf@newbook> Date: Mon, 14 May 2012 17:09:31 -0700 From: Isaac Dunham <idunham@...abit.com> To: musl@...ts.openwall.com Subject: Re: make -i with linux-pam On Mon, 14 May 2012 00:11:06 -0400 Rich Felker <dalias@...ifal.cx> wrote: > On Sun, May 13, 2012 at 08:58:24PM -0700, Isaac Dunham wrote: > > .libs/pam_group.o: In function `check_account': > > pam_group.c:(.text+0x12fe): undefined reference to `innetgr' > innetgr stub attached as patch. > > Basically the problems break down into: > - missing crypt_r public interface > - missing NIS/RPC > - missing rhosts stuff > - missing netgroup stuff > - a few minor header file issues Apparently also logwtmp is missing: ==== Making all in pam_lastlog make[3]: Entering directory `/home/ibid/misc/src/musl/Linux-PAM-1.1.3/modules/pam_lastlog' /bin/sh ../../libtool --tag=CC --mode=link musl-gcc -I../../libpam/include -I../../libpamc/include -fno-stack-protector -D_GNU_SOURCE -D_BSD_SOURCE -I/opt/musl/linux-headers/include -I/opt/musl/pincl -lssp_nonshared -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings -Winline -Wshadow -no-undefined -avoid-version -module -Wl,--version-script=./../modules.map -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -o pam_lastlog.la -rpath /opt/musl/lib/security pam_lastlog.lo -L../../libpam -lpam -lutil libtool: link: musl-gcc -shared .libs/pam_lastlog.o -Wl,-rpath -Wl,/home/ibid/misc/src/musl/Linux-PAM-1.1.3/libpam/.libs -Wl,-rpath -Wl,/opt/musl/lib -L/home/ibid/misc/src/musl/Linux-PAM-1.1.3/libpam /home/ibid/misc/src/musl/Linux-PAM-1.1.3/libpam/.libs/libpam.so -lssp_nonshared -ldl -lutil -Wl,--version-script=./../modules.map -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -Wl,-soname -Wl,pam_lastlog.so -o .libs/pam_lastlog.so .libs/pam_lastlog.o: In function `last_login_write': pam_lastlog.c:(.text+0x9ea): undefined reference to `logwtmp' .libs/pam_lastlog.o: In function `pam_sm_close_session': pam_lastlog.c:(.text+0x11b4): undefined reference to `logwtmp' collect2: ld returned 1 exit status make[3]: *** [pam_lastlog.la] Error 1 make[3]: Leaving directory `/home/ibid/misc/src/musl/Linux-PAM-1.1.3/modules/pam_lastlog' ==== logwtmp would be _BSD_SOURCE || _GNU_SOURCE Due to what logwtmp does (construct a wtmp log entry, then add to the system logfile), a stub doesn't sound sensible unless you actually want all logins to go unrecorded...however, it looks close to trivial to actually implement. The BSDs implement this with strncpy--should an implementation for musl use XOPEN or GNU functions only, or are strn* acceptable?
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.