Bug 239959 - linkset inconsistency in static libpam
Summary: linkset inconsistency in static libpam
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2019-08-19 03:16 UTC by Alex Zimnitsky
Modified: 2019-08-19 03:19 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Alex Zimnitsky 2019-08-19 03:16:47 UTC
1. Modules are registered to linkset '_openpam_static_modules'
in trunk/include/security/openpam.h:

DATA_SET(_openpam_static_modules, _pam_module)

2. Modules are searched for in linkset 'openpam_static_modules' (without
leading underscore) in trunk/lib/libpam/openpam_static.c

SET_DECLARE(openpam_static_modules, pam_module_t);
SET_FOREACH(module, openpam_static_modules) {

This makes static libpam unusable.
The fix is trivial: linkset reference have to be consistent.

I'd have removed the leading underscore from DATA_SET()'s first

Have already reported this upstream.
Comment 1 Alex Zimnitsky 2019-08-19 03:19:34 UTC
Well, it really affects anyone who is trying to use static libpam.
But I seem to be the only person to use it this way.