aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/services
diff options
context:
space:
mode:
authorOmair Majid <[email protected]>2010-12-17 16:19:35 -0500
committerOmair Majid <[email protected]>2010-12-17 16:19:35 -0500
commit519234f8f5b5abade80087155c727665dc55494b (patch)
tree3c40be3704380f2ac6bf55bbe013abfcda113309 /netx/net/sourceforge/jnlp/services
parent9d36851c174431e6ed861383ca9ffacbd67087d7 (diff)
use full privileges when checking whether to prompt user or not
2010-12-17 Omair Majid <[email protected]> * netx/net/sourceforge/jnlp/security/SecurityWarning.java (shouldPromptUser): Use full privileges when checking configuration. This value is not security-sensitive and the method is private. * netx/net/sourceforge/jnlp/services/ServiceUtil.java (shouldPromptUser): Likewise.
Diffstat (limited to 'netx/net/sourceforge/jnlp/services')
-rw-r--r--netx/net/sourceforge/jnlp/services/ServiceUtil.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/netx/net/sourceforge/jnlp/services/ServiceUtil.java b/netx/net/sourceforge/jnlp/services/ServiceUtil.java
index b55bba4..d030395 100644
--- a/netx/net/sourceforge/jnlp/services/ServiceUtil.java
+++ b/netx/net/sourceforge/jnlp/services/ServiceUtil.java
@@ -299,8 +299,13 @@ public class ServiceUtil {
* @return true if the user should be prompted for JNLP API related permissions.
*/
private static boolean shouldPromptUser() {
- return Boolean.valueOf(JNLPRuntime.getConfiguration()
- .getProperty(DeploymentConfiguration.KEY_SECURITY_PROMPT_USER_FOR_JNLP));
+ return AccessController.doPrivileged(new PrivilegedAction<Boolean >() {
+ @Override
+ public Boolean run() {
+ return Boolean.valueOf(JNLPRuntime.getConfiguration()
+ .getProperty(DeploymentConfiguration.KEY_SECURITY_PROMPT_USER_FOR_JNLP));
+ }
+ });
}
}