This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/18251] SONAME missing when audit modules provides path


https://sourceware.org/bugzilla/show_bug.cgi?id=18251

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #8240|0                           |1
        is obsolete|                            |

--- Comment #1 from Ulrich Drepper <drepper.fsp at gmail dot com> ---
Created attachment 8243
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8243&action=edit
Corrected patch and test

The original patch wasn't complete.  It did not take into account that instead
of the SONAME another name (the full path name, for instance) is used.  This
requires a more complete handling.

The patch now keeps track of the original name.  If an audit module overwrites
the name, the original name is also added to the name list.  The impact is
minimal.

I did not optimize out the additional parameter to _dl_map_object_from_fd in
case of static linking.  It's not needed, the code checks that it's always
NULL.  Removing the parameter would mean uglifying the code a lot.  Ideally the
compiler will clone the function (it should be local after all) and in the
clone remove the unnecessary parameter.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]