grant codebase "${lib.dir}*"
{
    //general permissions
    permission java.io.FilePermission "<<ALL FILES>>", "read,write,execute,delete";
    permission java.lang.RuntimePermission "getProtectionDomain";
    permission java.lang.RuntimePermission "createClassLoader";
    permission java.lang.RuntimePermission "getClassLoader";
    permission java.lang.RuntimePermission "setContextClassLoader";
    permission java.lang.RuntimePermission "modifyThreadGroup";
    permission java.lang.RuntimePermission "modifyThread";
    permission java.lang.RuntimePermission "shutdownHooks";
    permission java.lang.RuntimePermission "preferences";
    permission java.lang.RuntimePermission "exitVM";
    permission java.lang.RuntimePermission "queuePrintJob";
    permission java.lang.RuntimePermission "accessDeclaredMembers";
    permission java.util.PropertyPermission "*", "read";
    permission java.net.SocketPermission "224.0.1.84", "connect,accept";
    permission java.net.SocketPermission "224.0.1.85", "connect,accept";
    permission net.jini.discovery.DiscoveryPermission "*";
    permission java.awt.AWTPermission "showWindowWithoutWarningBanner";
    permission java.net.SocketPermission "localhost:80", "listen";
    permission javax.security.auth.AuthPermission "createLoginContext.Prix";
    //myself
    permission java.net.SocketPermission "${localhost}:1024-", "connect,accept";
    //code server
    permission java.net.SocketPermission "www.columbia.edu:80", "connect";
    //pcd
    permission java.net.SocketPermission "pcd.cc.columbia.edu", "connect";
    permission java.net.SocketPermission "citron.cc.columbia.edu", "connect";
    permission java.net.SocketPermission "lime.cc.columbia.edu", "connect";
    permission java.net.SocketPermission "jake03.cpmc.columbia.edu", "connect";
    //http access
    permission java.net.SocketPermission "*.columbia.edu:1024-", "accept";
    permission java.net.SocketPermission "validator.w3.org:1024-", "accept";
    //WAR client access
    permission java.net.SocketPermission "ninjamaster.cc.columbia.edu:1024-", "connect,accept";
    permission java.net.SocketPermission "netprint13.cc.columbia.edu:1024-", "connect,accept";
};

//lookup services
grant codebase "http://www.columbia.edu/acis/facilities/printers/reggie/reggie-dl.jar" {
    permission java.net.SocketPermission "*.columbia.edu:1024-", "connect";
};

