aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge
diff options
context:
space:
mode:
authorDeepak Bhole <[email protected]>2011-02-10 11:19:53 -0500
committerDeepak Bhole <[email protected]>2011-02-10 11:19:53 -0500
commitd0496a267170fb065b28352281a7b70a66e94e2f (patch)
tree3e38fa90e72a27b8071e7e4196f6ce6afd0d2948 /netx/net/sourceforge
parentcc560de201dfd48cde4d895c82dfc50316b33dd9 (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.java4
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;
}