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. |
|
14 (Example: C:\foo\tmp)<br><br> |
13 1) Click on the "Add Policy Entry" button in the |
15 1) Click on the "Add Policy Entry" button in the |
14 main policytool window.<br><br> |
16 main policytool window.<br><br> |
15 |
17 |
16 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> |
17 |
19 |
27 |
29 |
28 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 |
29 select "Save As".<br><br> |
31 select "Save As".<br><br> |
30 |
32 |
31 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 |
32 and click "OK".<br><br> |
34 and click "OK".<br> |
|
35 If testing on Windows, use the temporary directory created in Step 0. |
|
36 (Example: Save as "C:\foo\tmp\ptool.test")<br><br> |
33 |
37 |
34 9) cat /tmp/ptool.test<br><br> |
38 9) cat /tmp/ptool.test<br> |
|
39 If testing on Windows, check the contents of the file created in the previous |
|
40 step.<br><br> |
|
41 |
35 |
42 |
36 10) check to make sure that the new entry is in the policy file.<br><br> |
43 10) check to make sure that the new entry is in the policy file.<br><br> |
37 |
44 |
38 11) repeat steps 1-9 for:<br> |
45 11) repeat steps 1-10 for:<br> |
39 AWTPermission: readDisplayPixels<br> |
46 AWTPermission: readDisplayPixels<br> |
40 NetPermission: specifyStreamHandler<br> |
47 NetPermission: specifyStreamHandler<br> |
41 RuntimePermission: setContextClassLoader, |
48 RuntimePermission: setContextClassLoader, |
42 setSecurityManager, |
49 setSecurityManager, |
43 shutdownHooks, |
50 shutdownHooks, |
44 stopThread<br> |
51 stopThread<br> |
45 SecurityPermission: createAccessControlContext<br><br> |
52 SecurityPermission: createAccessControlContext<br><br> |
46 |
53 |
47 In the confirmation dialog pop-up, click "OK".<br><br> |
54 In the confirmation dialog pop-up, click "OK".<br><br> |
48 |
55 |
49 Exit policytool.<br><br> |
56 Exit policytool. If testing on Windows, delete the temporary directory and its |
|
57 contents created during this test.<br><br> |
50 |
58 |
51 Press "Pass" if ... press "Fail" otherwise.<br><br> |
59 Press "Pass" if ... press "Fail" otherwise.<br><br> |
52 |
60 |
53 </body> |
61 </body> |
54 </html> |
62 </html> |