1 grant {
   2   // must allow file reads so that jtreg itself and JFR can run
   3   permission java.io.FilePermission "<<ALL FILES>>", "read";
   4   // must allow file delete so that JFR can delete repository
   5   permission java.io.FilePermission "<<ALL FILES>>", "delete";
   6   // must allow file write so that the test can create the recording
   7   permission java.io.FilePermission "<<ALL FILES>>", "write";
   8 
   9   // need to be able to create temporary files
  10   permission java.util.PropertyPermission "java.io.tmpdir", "read";
  11   permission java.util.PropertyPermission "user.dir", "read";
  12   
  13   // need ManagementPermission to control JFR from the test
  14   permission java.lang.management.ManagementPermission "control";
  15   permission java.lang.management.ManagementPermission "monitor";
  16   
  17   // JDK-8019403 - access to sun.security.util, which is needed for creation of temp files, 
  18   // is not permitted automatically on solaris
  19   permission java.lang.RuntimePermission "accessClassInPackage.sun.security.util";
  20 };