UpdatePermissions.html revision 0
0N/A<html>
0N/A<body>
0N/A
0N/A<applet width=100 height=100 code=UpdatePermissions.class>
0N/A</applet>
0N/A
0N/AThis is a multi-stage test. Click on "done" when you have completed
0N/Areading these instructions.<br><br>
0N/A
0N/AFirst, policytool will be invoked.<br><br>
0N/A
0N/AThen, follow these steps:<br>
0N/A1) Click on the "Add Policy Entry" button in the
0N/Amain policytool window.<br><br>
0N/A
0N/A2) Click on the "Add Permission" button in the Policy Entry window.<br><br>
0N/A
0N/A3) In the Permission window, pull down the "Permission" menu and
0N/Aselect "AWTPermission".<br><br>
0N/A
0N/A4) In the Permission window, pull down the "Target Name" menu and
0N/Aselect "listenToAllAWTEvents".<br><br>
0N/A
0N/A5) Click on the "OK" button in the Permission window.<br><br>
0N/A
0N/A6) Click on the "Done" button in the Policy Entry window.<br><br>
0N/A
0N/A7) In the main policytool window, pull down the "File" menu and
0N/Aselect "Save As".<br><br>
0N/A
0N/A8) In the SaveAs window, enter "/tmp/ptool.test" as the file name
0N/Aand click "OK".<br><br>
0N/A
0N/A9) cat /tmp/ptool.test<br><br>
0N/A
0N/A10) check to make sure that the new entry is in the policy file.<br><br>
0N/A
0N/A11) repeat steps 1-9 for:<br>
0N/A AWTPermission: readDisplayPixels<br>
0N/A NetPermission: specifyStreamHandler<br>
0N/A RuntimePermission: setContextClassLoader,
0N/A setSecurityManager,
0N/A shutdownHooks,
0N/A stopThread<br>
0N/A SecurityPermission: printIdentity<br><br>
0N/A
0N/AIn the confirmation dialog pop-up, click "OK".<br><br>
0N/A
0N/AExit policytool.<br><br>
0N/A
0N/APress "Pass" if ... press "Fail" otherwise.<br><br>
0N/A
0N/A</body>
0N/A</html>