Commit 44fc7126 authored by hpi1's avatar hpi1

JSM: allow deleting writable files

parent 33e54e87
......@@ -99,6 +99,17 @@ final class BDJSecurityManager extends SecurityManager {
}
}
else if (perm instanceof FilePermission) {
/* grant delete for writable files */
if (perm.getActions().equals("delete")) {
if (canReadWrite(perm.getName())) {
return;
}
checkWrite(perm.getName());
return;
}
}
/* Networking */
else if (perm instanceof java.net.SocketPermission) {
if (new java.net.SocketPermission("*", "connect,resolve").implies(perm)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment