property FileAccess {
requires AbsoluteFileNames;
check RFileSystem.openRead (file: RFile) {
SecurityManager security = getSecurityManager ();
if (security != null) {
security.checkRead (file.getAbsoluteName ());
}
}
check RFileSystem.openOverwrite (file: RFile),
RFileSystem.openCreate (file: RFile),
RFileSystem.openAppend (file: RFile) {
SecurityManager security = getSecurityManager ();
if (security != null) {
security.checkWrite (file.getAbsoluteName ());
}
}
}
Naccio Home Page
University of Virginia, Computer Science