|
1 <html> |
|
2 <body> |
|
3 |
|
4 <applet width=100 height=100 code=UpdatePermissions.class> |
|
5 </applet> |
|
6 |
|
7 This is a multi-stage test. Click on "done" when you have completed |
|
8 reading these instructions.<br><br> |
|
9 |
|
10 First, policytool will be invoked.<br><br> |
|
11 |
|
12 Then, follow these steps:<br> |
|
13 1) Click on the "Add Policy Entry" button in the |
|
14 main policytool window.<br><br> |
|
15 |
|
16 2) Click on the "Add Permission" button in the Policy Entry window.<br><br> |
|
17 |
|
18 3) In the Permission window, pull down the "Permission" menu and |
|
19 select "AWTPermission".<br><br> |
|
20 |
|
21 4) In the Permission window, pull down the "Target Name" menu and |
|
22 select "listenToAllAWTEvents".<br><br> |
|
23 |
|
24 5) Click on the "OK" button in the Permission window.<br><br> |
|
25 |
|
26 6) Click on the "Done" button in the Policy Entry window.<br><br> |
|
27 |
|
28 7) In the main policytool window, pull down the "File" menu and |
|
29 select "Save As".<br><br> |
|
30 |
|
31 8) In the SaveAs window, enter "/tmp/ptool.test" as the file name |
|
32 and click "OK".<br><br> |
|
33 |
|
34 9) cat /tmp/ptool.test<br><br> |
|
35 |
|
36 10) check to make sure that the new entry is in the policy file.<br><br> |
|
37 |
|
38 11) repeat steps 1-9 for:<br> |
|
39 AWTPermission: readDisplayPixels<br> |
|
40 NetPermission: specifyStreamHandler<br> |
|
41 RuntimePermission: setContextClassLoader, |
|
42 setSecurityManager, |
|
43 shutdownHooks, |
|
44 stopThread<br> |
|
45 SecurityPermission: printIdentity<br><br> |
|
46 |
|
47 In the confirmation dialog pop-up, click "OK".<br><br> |
|
48 |
|
49 Exit policytool.<br><br> |
|
50 |
|
51 Press "Pass" if ... press "Fail" otherwise.<br><br> |
|
52 |
|
53 </body> |
|
54 </html> |