git: world: Attempt to fix NOSHARED MINUSLPAM handling.
zrj at crater.dragonflybsd.org
Fri Nov 10 23:13:39 PST 2017
Author: zrj <rimvydas.jasinskas at gmail.com>
Date: Fri Nov 10 20:30:05 2017 +0200
world: Attempt to fix NOSHARED MINUSLPAM handling.
* Add missing LIBYPCLNT as a dependency. TODO: NO_NIS handling.
* Add missing LIBSSH (only needed in case of pam_ssh module).
* Add missing LIBRECRYPTO too.
* Introduce LDFLAGSPAM helper for priv libs.
Now NOSHARED=yes buildworld is possible and it is usable. Dynamic .so libraries
are still built, just not used during linking of executables (with exceptions).
There should be no issues building standard buildworld over static one.
Keep in mind that static built utilities like su(1), login(1) will still try to
dlopen() the shared pam modules (and fail with sorry "Service unavailable")
followed by fallback case of loading static modules through openpam_static().
Because of that syslog and console will get spammed on any login attempts with:
_ login: in try_dlopen(): /usr/lib/security/pam_opie.so.2: Service unavailable
_ login: in try_dlopen(): /usr/lib/security/pam_unix.so.2: Service unavailable
_ su: in try_dlopen(): /usr/lib/security/pam_rootok.so.2: Service unavailable
_ su: in try_dlopen(): /usr/lib/security/pam_self.so.2: Service unavailable
Because libpam.a can still be linked in dynamic exec, not disabling warnings.
Currently used OpenPAM Micrampelis is quite stale (at the moment newest release
is Resedacea). Also with OpenSSH update there might be an API issue.
Please report any breakages on master.
Summary of changes:
libexec/atrun/Makefile | 1 +
libexec/ftpd/Makefile | 1 +
share/mk/bsd.libnames.mk | 12 +++++++++---
usr.bin/login/Makefile | 1 +
usr.bin/passwd/Makefile | 2 +-
usr.bin/su/Makefile | 2 +-
usr.sbin/cron/cron/Makefile | 4 ++--
7 files changed, 16 insertions(+), 7 deletions(-)
DragonFly BSD source repository
More information about the Commits