Bug 1538997 - sssd: libsss_proxy.so needs to be linked with -ldl
Summary: sssd: libsss_proxy.so needs to be linked with -ldl
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: sssd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Slebodnik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: Fedora28ElfLinking
TreeView+ depends on / blocked
 
Reported: 2018-01-26 10:56 UTC by Florian Weimer
Modified: 2018-02-06 14:08 UTC (History)
9 users (show)

Fixed In Version: sssd-1.16.0-10.fc28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-06 14:08:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Florian Weimer 2018-01-26 10:56:56 UTC
/usr/lib64/sssd/libsss_proxy.so has references to dlsym, dlopen, dlerror, so it needs to be linked with -ldl.  Not doing so risks crashes at run time.

Comment 1 Lukas Slebodnik 2018-01-26 13:23:28 UTC
sssd has quite complicated dependencies and cannot be easily compiled with
-Wl,-z,defs.

I tried to fix as much as possible and this missing fix is part of related PR
https://github.com/SSSD/sssd/pull/502/files#diff-c949f93d03f44a4217d7a138f9e2e54aR3906

BTW we newer noticed the problem because sssd_be is linked with ldl and that binary dynamically open libsss_proxy.so which dynamically open other modules for (pam, nsswitch) based on configuration.

Thank you very much for bug report.


Note You need to log in before you can comment on or make changes to this bug.