Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1538997

Summary: sssd: libsss_proxy.so needs to be linked with -ldl
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: sssdAssignee: Lukas Slebodnik <lslebodn>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: abokovoy, asn, jhrozek, lslebodn, nalin, pbrezina, rharwood, sbose, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sssd-1.16.0-10.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-06 14:08:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1538990    

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.