I made a few changes to the policy file to hopefully be a bit more secure.  
This is on Chrome, with java 7u51.

I had to set my java windows control panel global security setting to 
medium, which is idiotic, and I should be able to do this for a specific 
jar, but oh well.

The policy file is in c:/Program Files 
(x86)/Java/jre7/lib/security/java.policy for 32-bit java, and I found out 
the hard way that updating java stomps this file and you have to redo 
this.  You need to edit this file as administrator, I think.

I have my wiki in C:/users/checker/writing/wiki/, but instead of keeping 
the TiddlySaver.jar in that dir (which would make it writable by the 
below), I put in a jar/ subdir.  I had to modify my wiki source to load the 
archive:

archive='jar/TiddlySaver.jar'
>

Here is the policy snippet:
 

> grant codeBase "file:C:/users/checker/writing/wiki/jar/TiddlySaver.jar" {
>       permission java.io.FilePermission 
> "C:${/}Users${/}checker${/}writing${/}wiki", "read, write";
>       permission java.io.FilePermission 
> "C:${/}Users${/}checker${/}writing${/}wiki${/}*", "read, write";
>       permission java.io.FilePermission 
> "C:${/}Users${/}checker${/}writing${/}wiki${/}wikibackups${/}*", "read, 
> write";
> };
>
>
my backups obviously go to wikibackups/

Hope this helps, and I think it's a bit safer than the original 
recommendation of keeping the jar file in the same dir as the wiki.

Chris

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to