diff options
author | Sven Gothel <[email protected]> | 2013-06-20 20:09:43 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-06-20 20:09:43 +0200 |
commit | 12b3084ecc9da5b768fb7c9a9180d54b3d24ee43 (patch) | |
tree | 5d44696c07f6a14d72024b44bb214bbe2b18e939 /src/java | |
parent | 55b5449ce106164e7f47b827cbe03a7831de9942 (diff) |
Security: Tighten DynamicLinker*, NativeLibrary and DynamicLibraryBundle access.
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/jogamp/openal/ALDynamicLibraryBundleInfo.java | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/java/jogamp/openal/ALDynamicLibraryBundleInfo.java b/src/java/jogamp/openal/ALDynamicLibraryBundleInfo.java index 59765fe..69c6a28 100644 --- a/src/java/jogamp/openal/ALDynamicLibraryBundleInfo.java +++ b/src/java/jogamp/openal/ALDynamicLibraryBundleInfo.java @@ -40,8 +40,8 @@ import java.security.AccessController; import java.security.PrivilegedAction; import java.util.*; -public class ALDynamicLibraryBundleInfo implements DynamicLibraryBundleInfo { - private static List<String> glueLibNames; +public final class ALDynamicLibraryBundleInfo implements DynamicLibraryBundleInfo { + private static final List<String> glueLibNames; static { AccessController.doPrivileged(new PrivilegedAction<Object>() { public Object run() { @@ -62,13 +62,16 @@ public class ALDynamicLibraryBundleInfo implements DynamicLibraryBundleInfo { protected ALDynamicLibraryBundleInfo() { } - /** FIXME: not default, maybe local ? **/ + /** + * Returns <code>true</code>, + * since we might load the library and allow symbol access to subsequent libs. + */ @Override - public boolean shallLinkGlobal() { return true; } + public final boolean shallLinkGlobal() { return true; } /** default **/ @Override - public boolean shallLookupGlobal() { return false; } + public final boolean shallLookupGlobal() { return false; } @Override public final List<String> getGlueLibNames() { @@ -76,7 +79,7 @@ public class ALDynamicLibraryBundleInfo implements DynamicLibraryBundleInfo { } @Override - public List<List<String>> getToolLibNames() { + public final List<List<String>> getToolLibNames() { List<List<String>> libNamesList = new ArrayList<List<String>>(); final List<String> alSystemLibNames = new ArrayList<String>(); @@ -138,12 +141,12 @@ public class ALDynamicLibraryBundleInfo implements DynamicLibraryBundleInfo { } @Override - public boolean useToolGetProcAdressFirst(String funcName) { + public final boolean useToolGetProcAdressFirst(String funcName) { return true; } @Override - public RunnableExecutor getLibLoaderExecutor() { + public final RunnableExecutor getLibLoaderExecutor() { return DynamicLibraryBundle.getDefaultRunnableExecutor(); } } |