Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAIL on OpenBSD: libdirs that ar not known to ld.so.hints/LD_LIBRARY_PATH are not respected #124

Open
kthakore opened this issue Jul 24, 2011 · 0 comments
Assignees

Comments

@kthakore
Copy link
Member

Failed test 'use SDL;'

at t/00-load.t line 88.

Tried to use 'SDL'.

Error: Can't load '[...]/SDL_perl.so' for module SDL_perl: Cannot load specified object at [...]/DynaLoader.pm line 200.

at /home/cpan/pit/bare/conf/perl-5.12.2/.cpanplus/5.12.2/build/SDL-2.525_3/blib/lib/SDL.pm line 42

LDCONFIG(8) OpenBSD System Manager's Manual LDCONFIG(8)
[...]
SECURITY
Special care must be taken when loading shared libraries into the address
space of set-user-Id programs. Whenever such a program is run, ld.so(1)
will only load shared libraries from the ld.so.hints file. In
particular, the LD_LIBRARY_PATH is not used to search for libraries.
Thus, the role of ldconfig is dual. In addition to building a set of
hints for quick lookup, it also serves to specify the trusted collection
of directories from which shared objects can be safely loaded. It is
presumed that the set of directories specified to ldconfig are under
control of the system's administrator. ld.so(1) further assists set-
user-Id programs by erasing the LD_LIBRARY_PATH from the environment.

Reports:
http://www.cpantesters.org/cpan/report/6b064b9a-0882-11e0-bb29-ad544afd17af
http://www.cpantesters.org/cpan/report/cae34240-0808-11e0-bb29-ad544afd17af

@ghost ghost assigned FROGGS Jul 24, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants