[libbluray-devel] JSM: allow networking (resolve, connect)
hpi1
git at videolan.org
Mon Mar 23 11:51:44 CET 2015
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Mar 23 12:26:49 2015 +0200| [33e54e874c9a79ef56b83adb238bfc17186504a5] | committer: hpi1
JSM: allow networking (resolve, connect)
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=33e54e874c9a79ef56b83adb238bfc17186504a5
---
src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java b/src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java
index b0432ec..0176a36 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java
@@ -99,6 +99,13 @@ final class BDJSecurityManager extends SecurityManager {
}
}
+ /* Networking */
+ else if (perm instanceof java.net.SocketPermission) {
+ if (new java.net.SocketPermission("*", "connect,resolve").implies(perm)) {
+ return;
+ }
+ }
+
/* Java TV */
else if (perm instanceof javax.tv.service.ReadPermission) {
return;
More information about the libbluray-devel
mailing list