grant codebase "file:/tmp/duke" {
    permission java.net.SocketPermission "localhost", "accept";
};