[
https://issues.apache.org/jira/browse/LUCENE-4337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443927#comment-13443927
]
Uwe Schindler commented on LUCENE-4337:
---------------------------------------
I checked already: We dont really need a SecurityManager at all. All this can
be done from command line executing the tests:
http://docs.oracle.com/javase/6/docs/technotes/guides/security/PolicyFiles.html
We just need to create a PolicyFile that allows READ,EXECUTE for all files, but
READ,WRITE,EXECUTE,DELETE for all files in the working copy (using a
FilePermission). This policy file can be passed to the underlying Test JVM with
-Dargs=... and we are done. I will later do some tests to try out. No need to
write any line of code.
> Create Java security manager for forcible asserting behaviours in testing
> -------------------------------------------------------------------------
>
> Key: LUCENE-4337
> URL: https://issues.apache.org/jira/browse/LUCENE-4337
> Project: Lucene - Core
> Issue Type: Bug
> Affects Versions: 4.1, 5.0, 4.0
> Reporter: Greg Bowyer
> Assignee: Greg Bowyer
>
> Following on from conversations about mutation testing, there is an interest
> in building a Java security manager that is able to assert / guarantee
> certain behaviours
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]