[libbluray-devel] [Git][videolan/libbluray][master] library paths: Explicitly add /usr/local/lib

Petri Hintukainen gitlab at videolan.org
Mon Feb 25 18:47:59 CET 2019


Petri Hintukainen pushed to branch master at VideoLAN / libbluray


Commits:
a6faca51 by David Fuhrmann at 2019-02-25T16:56:12Z
library paths: Explicitly add /usr/local/lib

Hardened runtime prevents the program to load any libraries outside
of the application bundle by default. Specifically, it also ignores
DYLD_FALLBACK_PATH which would contain /usr/local/lib.
To allow usage of a library outside of the application bundle, add
/usr/local/lib explicitly.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

- - - - -


1 changed file:

- src/file/dl_posix.c


Changes:

=====================================
src/file/dl_posix.c
=====================================
@@ -69,10 +69,11 @@ void *dl_dlopen(const char *path, const char *version)
        @loader_path     - location of current library/binary (ex. libbluray.dylib)
        @executable_path - location of running binary (ex. /Applications/Some.app/Contents/MacOS)
        @rpath           - search rpaths of running binary (man install_name_path)
+       /usr/local/lib/  - explicitly added path, as runtime hardened programs ignore DYLD_FALLBACK_PATH now
     */
     static const char *search_paths[] = {"", "@loader_path/lib/", "@loader_path/", "@executable_path/",
                                          "@executable_path/lib/", "@executable_path/../lib/",
-                                         "@executable_path/../Resources/", "@rpath/", NULL};
+                                         "@executable_path/../Resources/", "@rpath/", "/usr/local/lib/", NULL};
     version = NULL;
 #else
     static const char ext[] = ".so";



View it on GitLab: https://code.videolan.org/videolan/libbluray/commit/a6faca515537781efba3560c68ee0b9f29884cef

-- 
View it on GitLab: https://code.videolan.org/videolan/libbluray/commit/a6faca515537781efba3560c68ee0b9f29884cef
You're receiving this email because of your account on code.videolan.org.


More information about the libbluray-devel mailing list