Commit fc11ac1b authored by hpi1's avatar hpi1

JSM: allow reading on-disc and cache files.

Default Java security policy does not seem to deny reading these files.
parent 21612322
......@@ -175,14 +175,30 @@ final class BDJSecurityManager extends SecurityManager {
throw new SecurityException("exit denied");
}
/*
* file read access
*/
public void checkRead(String file) {
file = getCanonPath(file);
//super.checkRead(file);
if (usingUdf) {
BDJLoader.accessFile(file);
}
if (cacheRoot != null && file.startsWith(cacheRoot)) {
return;
}
else if (discRoot != null && file.startsWith(discRoot)) {
return;
}
else if (canReadWrite(file)) {
return;
}
//logger.error("Xlet read " + file + " denied at\n" + Logger.dumpStack());
super.checkRead(file);
}
/*
......
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