]> git.zerfleddert.de Git - rsbs2/commitdiff
use policy-file for applet to allow remote-storage
authorMichael Gernoth <michael@gernoth.net>
Sat, 21 Aug 2010 12:44:48 +0000 (14:44 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sat, 21 Aug 2010 12:44:48 +0000 (14:44 +0200)
applet.policy [new file with mode: 0644]
rsbs2.pl

diff --git a/applet.policy b/applet.policy
new file mode 100644 (file)
index 0000000..07499e7
--- /dev/null
@@ -0,0 +1,3 @@
+grant {
+       permission java.security.AllPermission;
+};
index 022a9493931a2d94029be85491e2b40304c26e19..c835c0dd109f2d1635cf08657687854b57885c0a 100755 (executable)
--- a/rsbs2.pl
+++ b/rsbs2.pl
@@ -477,7 +477,7 @@ sub status {
 
 sub spawn_gui {
        my $base = shift;
 
 sub spawn_gui {
        my $base = shift;
-       open(APPLET,"|appletviewer /dev/stdin");
+       open(APPLET,"|appletviewer -J-Djava.security.policy=applet.policy /dev/stdin");
        print APPLET '<HTML><HEAD><TITLE>RSB S2 User Interface</TITLE></HEAD>';
        print APPLET '<BODY>';
        print APPLET '<object width="640" height="480">';
        print APPLET '<HTML><HEAD><TITLE>RSB S2 User Interface</TITLE></HEAD>';
        print APPLET '<BODY>';
        print APPLET '<object width="640" height="480">';
Impressum, Datenschutz