diff options
author | Sven Gothel <[email protected]> | 2001-03-15 00:11:05 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2001-03-15 00:11:05 +0000 |
commit | 71b55a070e73ae15c01b0ddc7a3249d9e5bed298 (patch) | |
tree | e37310fac6e36bc6aa6628224b424acc608412f3 /demos | |
parent | b7f7eee96facb114a3dfe11bf70a6d6f3b1299b9 (diff) |
some little bug fixes post v. 2.6.0rel-2-6-0-1
Diffstat (limited to 'demos')
-rwxr-xr-x | demos/MiscDemos/gl4java.policy | 154 | ||||
-rwxr-xr-x | demos/gl4java252Check.sh | 36 |
2 files changed, 190 insertions, 0 deletions
diff --git a/demos/MiscDemos/gl4java.policy b/demos/MiscDemos/gl4java.policy new file mode 100755 index 0000000..1679a0d --- /dev/null +++ b/demos/MiscDemos/gl4java.policy @@ -0,0 +1,154 @@ +// +// GL4Java extensions get all permissions ! +// +// This config-piece should be added on top of the file: +// +// If a Java2 SDK is used: +// <java2-installation>/jre/lib/security/java.policy +// +// If a Java2 JRE is used: +// <jre-installation>/lib/security/java.policy +// +// The GL4Java Homepage: +// +// http://www.jausoft.com/gl4java/ +// + +grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/Installer/*" +{ + permission java.security.AllPermission; +}; + +grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/*" +{ + permission java.security.AllPermission; +}; + +grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/MiscDemos/*" +{ + permission java.security.AllPermission; +}; + +grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/RonsDemos/*" +{ + permission java.security.AllPermission; +}; + +grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/SwingDemos/*" +{ + permission java.security.AllPermission; +}; + +grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/GLLandScape/*" +{ + permission java.security.AllPermission; +}; + +grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/HodglimsNeHe/*" +{ + permission java.security.AllPermission; +}; + +grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java-Stuff/*" +{ + permission java.security.AllPermission; +}; + +grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java-Stuff/psi/*" +{ + permission java.security.AllPermission; +}; + +grant codeBase "http://jausoft.goethel.de/Files/Java/1.1.X/GL4Java/Installer/*" +{ + permission java.security.AllPermission; +}; + +grant codeBase "http://jausoft.goethel.de/Files/Java/1.1.X/GL4Java/demos/*" +{ + permission java.security.AllPermission; +}; + +grant codeBase "http://jausoft.goethel.de/Files/Java/1.1.X/GL4Java/demos/MiscDemos/*" +{ + permission java.security.AllPermission; +}; + +grant codeBase "http://jausoft.goethel.de/Files/Java/1.1.X/GL4Java/demos/RonsDemos/*" +{ + permission java.security.AllPermission; +}; + +grant codeBase "http://jausoft.goethel.de/Files/Java/1.1.X/GL4Java/demos/SwingDemos/*" +{ + permission java.security.AllPermission; +}; + +grant codeBase "http://jausoft.goethel.de/Files/Java/1.1.X/GL4Java/demos/GLLandScape/*" +{ + permission java.security.AllPermission; +}; + +grant codeBase "http://jausoft.goethel.de/Files/Java/1.1.X/GL4Java/demos/HodglimsNeHe/*" +{ + permission java.security.AllPermission; +}; + +grant codeBase "http://jausoft.goethel.de/Files/Java/1.1.X/GL4Java-Stuff/*" +{ + permission java.security.AllPermission; +}; + +grant codeBase "http://jausoft.goethel.de/Files/Java/1.1.X/GL4Java-Stuff/psi/*" +{ + permission java.security.AllPermission; +}; + + +// Standard extensions get all permissions by default + +grant codeBase "file:${java.home}/lib/ext/*" { + permission java.security.AllPermission; +}; + +// default permissions granted to all domains + +grant { + // Allows any thread to stop itself using the java.lang.Thread.stop() + // method that takes no argument. + // Note that this permission is granted by default only to remain + // backwards compatible. + // It is strongly recommended that you either remove this permission + // from this policy file or further restrict it to code sources + // that you specify, because Thread.stop() is potentially unsafe. + // See "http://java.sun.com/notes" for more information. + permission java.lang.RuntimePermission "stopThread"; + + // allows anyone to listen on un-privileged ports + permission java.net.SocketPermission "localhost:1024-", "listen"; + + // "standard" properies that can be read by anyone + + permission java.util.PropertyPermission "java.version", "read"; + permission java.util.PropertyPermission "java.vendor", "read"; + permission java.util.PropertyPermission "java.vendor.url", "read"; + permission java.util.PropertyPermission "java.class.version", "read"; + permission java.util.PropertyPermission "os.name", "read"; + permission java.util.PropertyPermission "os.version", "read"; + permission java.util.PropertyPermission "os.arch", "read"; + permission java.util.PropertyPermission "file.separator", "read"; + permission java.util.PropertyPermission "path.separator", "read"; + permission java.util.PropertyPermission "line.separator", "read"; + + permission java.util.PropertyPermission "java.specification.version", "read"; + permission java.util.PropertyPermission "java.specification.vendor", "read"; + permission java.util.PropertyPermission "java.specification.name", "read"; + + permission java.util.PropertyPermission "java.vm.specification.version", "read"; + permission java.util.PropertyPermission "java.vm.specification.vendor", "read"; + permission java.util.PropertyPermission "java.vm.specification.name", "read"; + permission java.util.PropertyPermission "java.vm.version", "read"; + permission java.util.PropertyPermission "java.vm.vendor", "read"; + permission java.util.PropertyPermission "java.vm.name", "read"; +}; + diff --git a/demos/gl4java252Check.sh b/demos/gl4java252Check.sh new file mode 100755 index 0000000..5027d97 --- /dev/null +++ b/demos/gl4java252Check.sh @@ -0,0 +1,36 @@ +#! /bin/sh + +verbose=1 + +if [ "$1" = "-quiet" ] ; then + verbose=0 +fi + +# +# MakeCurrent/Free check +# +for i in *.java ; do + a=$(grep -h -c gljMakeCurrent $i) + b=$(grep -h -c gljFree $i) + if [ ! \( $a -eq $b \) ] ; then + if [ $verbose -eq 1 ] ; then + echo $i MakeCurrent/Free ERROR + else + echo $i + fi + fi +done + +# +# gluNew check ! +# +for i in *.java ; do + a=$(grep -h -c gluNew $i) + if [ ! \( $a -eq 0 \) ] ; then + if [ $verbose -eq 1 ] ; then + echo $i gluNew used WARNING + else + echo $i + fi + fi +done |