[libbluray-devel] BDJSecurityManager: deny all file writes in checkPermission()

hpi1 git at videolan.org
Mon Oct 5 13:39:59 CEST 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Oct  5 13:14:47 2015 +0300| [0608f9044758c52a710e7edc03bff0239bf1122f] | committer: hpi1

BDJSecurityManager: deny all file writes in checkPermission()

Xlet write access is handled in checkWrite().

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

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

diff --git a/src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java b/src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java
index 841ea6e..35b56dd 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java
@@ -119,6 +119,10 @@ final class BDJSecurityManager extends SecurityManager {
                     return;
                 }
             }
+            if (perm.getActions().contains("write")) {
+                /* write permissions are handled in checkWrite() */
+                deny(perm);
+            }
         }
 
         /* Networking */



More information about the libbluray-devel mailing list