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 <[email protected]> - - - - - 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.
_______________________________________________ libbluray-devel mailing list [email protected] https://mailman.videolan.org/listinfo/libbluray-devel
