Skip to content

Commit

Permalink
Add example policy file and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
oranenj committed Dec 29, 2008
1 parent db2d983 commit 5e10cdf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Clojurebot v2

Version 2 of clojurebot is not yet very thoroughly tested; the sandbox is not restricted by default, and some knowledge of java security manager is needed to install an appropriate policy file.
Version 2 of clojurebot is not yet very thoroughly tested; the sandbox is not restricted by default, and some knowledge of java security manager is needed to install an appropriate policy file. See the example.policy file to get an idea how to accomplish this.

This version should have feature parity with v1 now.

Expand Down
19 changes: 19 additions & 0 deletions example.policy
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* Grant all for the REPL; the sandbox created will "throw away" these permissions,
* but they are still needed for clojurebot to start up properly.

You will need to start the java virtual machine with the following extra args:

-Djava.security.manager -Djava.security.policy="file:///path/to/this.policy"

With this grant-all setup, clojurebot can also be run from SLIME.
*/

grant {
permission java.security.AllPermission;
};

/* Untested, more specific grant. Would not work with SLIME or a repl.
grant codeBase "file:///Users/oranenj/koodi/VCS/clojurebot/" {
permission java.security.AllPermission;
};
*/

0 comments on commit 5e10cdf

Please sign in to comment.