JMU
Java Security - Deployment
An Introduction


Prof. David Bernstein
James Madison University

Computer Science Department
bernstdh@jmu.edu


Overview/Review
Policy Files
Policy Files (cont.)
Specifying Additional Policy Files
An Example Policy File
grant codeBase "file:/home/sysadmin/" {
	permission java.io.FilePermission "file:/home/public/", "read";
};

grant  {
   permission java.lang.RuntimePermission "modifyThread";
   permission java.net.SocketPermission "*", "accept, connect,listen,resolve";
   permission java.util.logging.LoggingPermission "control";
};

Note: An application can always read from the directory it was started in (and all subdirectories of that directory).

Internals