author | juh |
Fri, 03 May 2013 15:04:54 -0700 | |
changeset 17427 | 5e7f51b62b1d |
parent 15282 | 4642fe251f37 |
child 18169 | deb6268716ef |
permissions | -rw-r--r-- |
2 | 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> |
|
17427
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
15282
diff
changeset
|
13 |
0) If testing on Windows, create a temporary directory. |
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
15282
diff
changeset
|
14 |
(Example: C:\foo\tmp)<br><br> |
2 | 15 |
1) Click on the "Add Policy Entry" button in the |
16 |
main policytool window.<br><br> |
|
17 |
||
18 |
2) Click on the "Add Permission" button in the Policy Entry window.<br><br> |
|
19 |
||
20 |
3) In the Permission window, pull down the "Permission" menu and |
|
21 |
select "AWTPermission".<br><br> |
|
22 |
||
23 |
4) In the Permission window, pull down the "Target Name" menu and |
|
24 |
select "listenToAllAWTEvents".<br><br> |
|
25 |
||
26 |
5) Click on the "OK" button in the Permission window.<br><br> |
|
27 |
||
28 |
6) Click on the "Done" button in the Policy Entry window.<br><br> |
|
29 |
||
30 |
7) In the main policytool window, pull down the "File" menu and |
|
31 |
select "Save As".<br><br> |
|
32 |
||
33 |
8) In the SaveAs window, enter "/tmp/ptool.test" as the file name |
|
17427
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
15282
diff
changeset
|
34 |
and click "OK".<br> |
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
15282
diff
changeset
|
35 |
If testing on Windows, use the temporary directory created in Step 0. |
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
15282
diff
changeset
|
36 |
(Example: Save as "C:\foo\tmp\ptool.test")<br><br> |
2 | 37 |
|
17427
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
15282
diff
changeset
|
38 |
9) cat /tmp/ptool.test<br> |
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
15282
diff
changeset
|
39 |
If testing on Windows, check the contents of the file created in the previous |
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
15282
diff
changeset
|
40 |
step.<br><br> |
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
15282
diff
changeset
|
41 |
|
2 | 42 |
|
43 |
10) check to make sure that the new entry is in the policy file.<br><br> |
|
44 |
||
17427
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
15282
diff
changeset
|
45 |
11) repeat steps 1-10 for:<br> |
2 | 46 |
AWTPermission: readDisplayPixels<br> |
47 |
NetPermission: specifyStreamHandler<br> |
|
48 |
RuntimePermission: setContextClassLoader, |
|
49 |
setSecurityManager, |
|
50 |
shutdownHooks, |
|
51 |
stopThread<br> |
|
15282 | 52 |
SecurityPermission: createAccessControlContext<br><br> |
2 | 53 |
|
54 |
In the confirmation dialog pop-up, click "OK".<br><br> |
|
55 |
||
17427
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
15282
diff
changeset
|
56 |
Exit policytool. If testing on Windows, delete the temporary directory and its |
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
15282
diff
changeset
|
57 |
contents created during this test.<br><br> |
2 | 58 |
|
59 |
Press "Pass" if ... press "Fail" otherwise.<br><br> |
|
60 |
||
61 |
</body> |
|
62 |
</html> |