Safety Property: NoObserveFiles

property NoObserveFiles { // Don't allow any snooping around the file system
  requires FileNames;
  check RFileSystem.observeProperty (file: RFile), 
        RFileSystem.observeList (file: RFile) {
    violation ("Attempt to snoop around file system: " + file.getName ());
  }
}

About this file

Naccio Home Page
David Evans
University of Virginia, Computer Science