ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22533] - [PATCH] Adding Permissions / Security Manager to Java task and JUnit task
Date Tue, 19 Aug 2003 06:19:48 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22533>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22533

[PATCH] Adding Permissions / Security Manager to Java task and JUnit task





------- Additional Comments From ant@kruithof.xs4all.nl  2003-08-19 06:19 -------
Well, the default permissions granted do not include the exitVM one,
(The default granted ones are the same as those granted in the standard
distribution of jdk 1.4)
so a plain nested <permissions/> would do as can be seen in the JavaTest.
If i.e. files are manipulated in the code subject to permissions one would need
to  grant that permission.
And if one wishes the ant build to stop at an Ssytem.exit() one would need:
to <grant class="java.lang.RuntimePermission" name="exitVM"/> 
or leave out <permissions/> entirely.
To permit everyting except for exitVM:
<permissions>
    <grant  class="java.security.AllPermission"/>
    <revoke class=="java.lang.RuntimePermission" name="exitVM"/>
</permissions>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message