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

Add support for a static native library search path #92

Merged
merged 5 commits into from
Aug 5, 2021
Merged

Conversation

tresf
Copy link

@tresf tresf commented Jul 27, 2021

Bundling JSSC into a sandboxed application (SELinux, Mac AppStore) may have runtime issues due to how native-lib-loader handles the extraction of native libraries at runtime by default, something prohibited in certain high-security environments.

This PR adds a stub extractor class which extends native-lib-loader's default extraction behavior unless a valid bootPath parameter is provided, allowing it to look in a static search location before performing any sandbox-restricted extraction.

To toggle this on, simply set the jssc.boot.library.path variable via code or command line:

@tresf tresf merged commit 135350e into master Aug 5, 2021
@tresf tresf deleted the boot-path branch August 5, 2021 22:55
@tresf
Copy link
Author

tresf commented Aug 5, 2021

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

Successfully merging this pull request may close these issues.

1 participant