[libbluray-devel] JSM: grant javax.tv, org.dvb and org.bluray permissions.

hpi1 git at videolan.org
Mon Mar 23 10:32:13 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Mar 23 11:12:56 2015 +0200| [2a7acb8383c8c1acc94e1bf09bdf6de58becc436] | committer: hpi1

JSM: grant javax.tv, org.dvb and org.bluray permissions.

Java default policy denies all unknown permissions.

Access should be limited based on Xlet properties, but that would be
useless as we don't check signatures yet.

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=2a7acb8383c8c1acc94e1bf09bdf6de58becc436
---

 .../bdj/java/org/videolan/BDJSecurityManager.java  |   30 ++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java b/src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java
index 6b1e37e..b0432ec 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java
@@ -99,6 +99,36 @@ final class BDJSecurityManager extends SecurityManager {
             }
         }
 
+        /* Java TV */
+        else if (perm instanceof javax.tv.service.ReadPermission) {
+            return;
+        }
+        else if (perm instanceof javax.tv.service.selection.ServiceContextPermission) {
+            return;
+        }
+        else if (perm instanceof javax.tv.service.selection.SelectPermission) {
+            return;
+        }
+        else if (perm instanceof javax.tv.media.MediaSelectPermission) {
+            return;
+        }
+
+        /* DVB */
+        else if (perm instanceof org.dvb.application.AppsControlPermission) {
+            return;
+        }
+        else if (perm instanceof org.dvb.media.DripFeedPermission) {
+            return;
+        }
+        else if (perm instanceof org.dvb.user.UserPreferencePermission) {
+            return;
+        }
+
+        /* bluray */
+        else if (perm instanceof org.bluray.vfs.VFSPermission) {
+            return;
+        }
+
         /*
         try {
             java.security.AccessController.checkPermission(perm);



More information about the libbluray-devel mailing list