jdk/test/sun/security/tools/policytool/UpdatePermissions.html
changeset 18169 deb6268716ef
parent 17427 5e7f51b62b1d
child 20886 9630bb813a6c
equal deleted inserted replaced
18168:f47169155ea0 18169:deb6268716ef
     8 reading these instructions.<br><br>
     8 reading these instructions.<br><br>
     9 
     9 
    10 First, policytool will be invoked.<br><br>
    10 First, policytool will be invoked.<br><br>
    11 
    11 
    12 Then, follow these steps:<br>
    12 Then, follow these steps:<br>
    13 0) If testing on Windows, create a temporary directory.
    13 0) Find (or create) a temporary directory that you have write access to.
    14 (Example: C:\foo\tmp)<br><br>
    14 (Example: 'C:\foo\tmp' on Windows or '/tmp' on other systems)<br><br>
    15 1) Click on the "Add Policy Entry" button in the
    15 1) Click on the "Add Policy Entry" button in the
    16 main policytool window.<br><br>
    16 main policytool window.<br><br>
    17 
    17 
    18 2) Click on the "Add Permission" button in the Policy Entry window.<br><br>
    18 2) Click on the "Add Permission" button in the Policy Entry window.<br><br>
    19 
    19 
    30 7) In the main policytool window, pull down the "File" menu and
    30 7) In the main policytool window, pull down the "File" menu and
    31 select "Save As".<br><br>
    31 select "Save As".<br><br>
    32 
    32 
    33 8) In the SaveAs window, enter "/tmp/ptool.test" as the file name
    33 8) In the SaveAs window, enter "/tmp/ptool.test" as the file name
    34 and click "OK".<br>
    34 and click "OK".<br>
    35 If testing on Windows, use the temporary directory created in Step 0.
    35 (Or use the temporary directory mentioned in Step 0 if it's not '/tmp'.
    36 (Example: Save as "C:\foo\tmp\ptool.test")<br><br>
    36 For example, "C:\foo\tmp\ptool.test" on Windows)<br><br>
    37 
    37 
    38 9) cat /tmp/ptool.test<br>
    38 9) Check the content of the file created in the previous step<br><br>
    39 If testing on Windows, check the contents of the file created in the previous
       
    40 step.<br><br>
       
    41 
       
    42 
    39 
    43 10) check to make sure that the new entry is in the policy file.<br><br>
    40 10) check to make sure that the new entry is in the policy file.<br><br>
    44 
    41 
    45 11) repeat steps 1-10 for:<br>
    42 11) repeat steps 1-10 for:<br>
    46 	AWTPermission:		readDisplayPixels<br>
    43 	AWTPermission:		readDisplayPixels<br>
    51 				stopThread<br>
    48 				stopThread<br>
    52 	SecurityPermission:	createAccessControlContext<br><br>
    49 	SecurityPermission:	createAccessControlContext<br><br>
    53 
    50 
    54 In the confirmation dialog pop-up, click "OK".<br><br>
    51 In the confirmation dialog pop-up, click "OK".<br><br>
    55 
    52 
    56 Exit policytool. If testing on Windows, delete the temporary directory and its
    53 Exit policytool. Delete the files created during this test. If the
    57 contents created during this test.<br><br>
    54 temporary directory is also newly created, empty and delete it.<br><br>
    58 
    55 
    59 Press "Pass" if ... press "Fail" otherwise.<br><br>
    56 Press "Pass" if ... press "Fail" otherwise.<br><br>
    60 
    57 
    61 </body>
    58 </body>
    62 </html>
    59 </html>