diff options
author | Deepak Bhole <[email protected]> | 2011-02-10 11:19:53 -0500 |
---|---|---|
committer | Deepak Bhole <[email protected]> | 2011-02-10 11:19:53 -0500 |
commit | d0496a267170fb065b28352281a7b70a66e94e2f (patch) | |
tree | 3e38fa90e72a27b8071e7e4196f6ce6afd0d2948 /netx/net/sourceforge | |
parent | cc560de201dfd48cde4d895c82dfc50316b33dd9 (diff) |
Restrict access to net.sourceforge.jnlp.* classes by untrusted classes.
Diffstat (limited to 'netx/net/sourceforge')
-rw-r--r-- | netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java b/netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java index 2efa620..b5acb17 100644 --- a/netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java +++ b/netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java @@ -223,6 +223,10 @@ public class JNLPRuntime { Authenticator.setDefault(new JNLPAuthenticator()); ProxySelector.setDefault(new BrowserAwareProxySelector()); + // Restrict access to netx classes + Security.setProperty("package.access", + Security.getProperty("package.access")+",net.sourceforge.jnlp"); + initialized = true; } |