Bug 13623 - provide API to for standalone dynamic string tokens (DST) expansion
Summary: provide API to for standalone dynamic string tokens (DST) expansion
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: dynamic-link (show other bugs)
Version: unspecified
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-25 17:59 UTC by Stanislav Brabec
Modified: 2014-06-27 11:08 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Brabec 2012-01-25 17:59:34 UTC
DST expansion is used for evaluation of dlopen() path. But the expansion is private to the libdl and cannot be evaluated for external applications.

It would make sense to provide public API call to expand path:

- Modules directory specification can use $LIB and application would be able to get a list of modules.

- Application would be able to stat() the module with $LIB in the path to check whether such file exists, without actual loading them.

Example of problem:
https://bugzilla.gnome.org/show_bug.cgi?id=153848#c8