add 2 more

x
This commit is contained in:
Robert Muir 2015-05-02 12:11:33 -04:00
parent ff44f45af1
commit e1238c5e4c
1 changed files with 3 additions and 1 deletions

View File

@ -71,12 +71,14 @@ class Security {
}
PermissionCollection permissions = policy.getPermissions(Security.class.getProtectionDomain());
log.trace("generated permissions: {}", permissions);
log.info("java.io.tmpdir: {}", System.getProperty("java.io.tmpdir"));
System.setSecurityManager(new SecurityManager());
try {
// don't hide securityexception here, it means java.io.tmpdir is not accessible!
Files.delete(newConfig);
} catch (SecurityException broken) {
log.info("java.io.tmpdir: {}", System.getProperty("java.io.tmpdir"));
log.error("unable to properly access temporary files, permissions: {}", permissions);
throw broken;
} catch (IOException ignore) {