"# UTF-8 encoded file\n# Comment lines begin with # or ! in the first column\n# Empty lines are ignored\n# Keys must start in column one. The key is separated from the value with a single space character.\n# The rest of the line is the value of the key\n# Keys can be specified several times. Then the key has a value that is built as a list of all values.\n# Keys without a value are so-called marker keys. These keys do not specify a value.\n\n# Enable verbose output during Byte Buddy installation\n# or Byte Buddy transformation and during permission initialisation\n# or permission checks. Valid comma-separated actions are\n# install,transform,permit,trace\n# In order switch off an action, you can specify a \"no-\", i. e.\n# verbose install,no-transform,permit,no-trace\n# is a valid spec.\nverbose install,transform,no-permit,no-trace\n#verbose install,transform,permit,trace\n\n# Prevent VM exit (marker key):\ndeny.shutdownExitVm\n\n# Prevent adding or removing JVM shutdown hooks (marker key):\ndeny.shutdownHooks\n\n# Marker key to prevent setAccess calls\ndeny.reflectionSetAccessible\n\n# Marker key to prevent access to declared members\ndeny.reflectionAccessDeclaredMembers\n\n# Marker key to prevent access to stacktrace of foreign threads\ndeny.reflectionGetStackTrace\n\n# Marker key to prevent access to stacktrace of foreign threads\ndeny.reflectionGetStackWalkerWithClassReference\n\n# Marker key to prevent querying the classloader of arbitrary classes\ndeny.reflectionGetClassLoader\n\n# Marker key to prevent creating a classloader\ndeny.reflectionCreateClassLoader\n\n# Marker key to prevent accessing classes in packages like sun.misc or jdk.internal:\ndeny.reflectionAccessClassInNonExportedBootLayerPackage\n\n# Marker key to prevent class definition from bytes\ndeny.reflectionDefineClass\n\n# Marker key to prevent stopping of foreign threads\ndeny.threadStop\n\n# Marker key to prevent modification of foreign threads\ndeny.threadModify\n\n# Marker key to prevent modification of the root thread group\ndeny.threadModifyRootOrMainGroup\n\n# Marker key to prevent identifying and terminating processes\ndeny.contextManageProcess\n\n# Marker key to prevent loading native libraries\ndeny.contextLoadLibrary\n\n# Marker key to prevent setting of System.out, System.in, and System.err\ndeny.contextSetIO\n\n# Marker key to prevent leaking all information about local network interfaces\ndeny.contextGetNetworkInformation\n\n# Marker key to initiate any network permission checks\n# If missing, no network access will be checked\ndeny.networkExceptSpecifiedPermissions\n\n# Syntax: permit.network <host>:<portrange>\n# A permit.network represents access to a network via sockets. It consists of a host specification\n# and a portrange\n#\n# host = (hostname | IPv4address | iPv6reference)\n# portrange = portnumber | -portnumber | portnumber-[portnumber]\n#\n# Both parts are manadatory.\n# The host is expressed as a DNS name, as a numerical IP address, or as \"localhost\" (for the local machine).\n# The wildcard \"*\" may be included once in a DNS name host specification. If it is included, it must be in\n# the leftmost position, as in \"*.example.com\".\n#\n# The format of the IPv6reference should follow that specified in RFC 2732: Format for Literal IPv6 Addresses in URLs:\n#\n# ipv6reference = \"[\" IPv6address \"]\"\n#\n# Sensible permissions could be:\n# - allow a local server:\n# permit.network localhost:8080\n# - allow NTP access:\n# permit.network pool.ntp.org:123\n\n\n\n# Marker key to initiate any file permission checks\n# If missing, no file access will be checked\ndeny.fileExceptSpecifiedPermissions\n\n# Syntax: permit.file <pattern> | <actions>\n# The <pattern> is specified in the \"glob\" syntax as specified in\n# https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/file/FileSystem.html#getPathMatcher(java.lang.String)\n# Backslashes as directory separators MUST be specified as forward slashes\n# The <actions> is a comma-separated list of the keywords read,write,execute,delete\n# As part of the <pattern> you can specify placeholders for system properties. The syntax is\n# ${{property.name}}\n# Properties will be replaced before matching. If the referenced system property cannot be resolved, an\n# exception is thrown.\n\n# Some assignments need file permissions like this:\npermit.file \u00c2\u00a7[WORKSPACE_DIR]\u00c2\u00a7 | read\npermit.file \u00c2\u00a7[WORKSPACE_DIR]\u00c2\u00a7/** | read,write\n\n# Marker key to initiate any property permission checks\n# If missing, no property access will be checked\ndeny.propertyExceptSpecifiedPermissions\n\n# Syntax: permit.property <name> | <actions>\n# The <name> is the name of the given permission (for example, \"os.name\").\n# The naming convention follows the hierarchical property naming convention.\n# An asterisk may appear by itself, or if immediately preceded by a \".\"\n# may appear at the end of the name, to signify a wildcard match.\n# For example, \"*\" and \"java.*\" signify a wildcard match, while \"*java\", \"a*b\",\n# and \"java*\" do not.\n# The <actions> is a comma-separated list of the keywords read,write\n\n# Typical permissions for student submission might be the follwoing\n# \"standard\" properties that can be read by anyone:\npermit.property java.version | read\npermit.property java.vendor | read\npermit.property java.vendor.url | read\npermit.property java.class.version | read\npermit.property os.name | read\npermit.property os.version | read\npermit.property os.arch | read\npermit.property file.separator | read\npermit.property path.separator | read\npermit.property line.separator | read\npermit.property java.specification.version | read\npermit.property java.specification.vendor | read\npermit.property java.specification.name | read\npermit.property java.vm.specification.version | read\npermit.property java.vm.specification.vendor | read\npermit.property java.vm.specification.name | read\npermit.property java.vm.version | read\npermit.property java.vm.vendor | read\npermit.property java.vm.name | read\n\n# These ones are needed for network access classes static initializers:\npermit.property jdk.net.usePlainDatagramSocketImpl | read\npermit.property jdk.net.usePlainSocketImpl | read\npermit.property java.net.preferIPv6Addresses | read\npermit.property java.net.useSystemProxies | read\npermit.property sun.net.useExclusiveBind | read\npermit.property jdk.net.useFastTcpLoopback | read\npermit.property sun.net.maxDatagramSockets | read\npermit.property socksProxyHost | read\npermit.property socksProxyPort | read\n\n# Further permissions, that could be granted to student submissions,\n# but this reveals already information about the grading system:\npermit.property java.io.tmpdir | read\npermit.property java.home | read\npermit.property file.encoding | read\n\n# Further permissions, that also could be granted to student submissions:\npermit.property user.* | read\n\n# Allow Graja specific property:\npermit.property graja.user.workspace | read\n\n# Marker key to initiate any environment permission checks\n# If missing, no environment access will be checked\ndeny.envExceptSpecifiedPermissions\n\n# Typical permissions for student submission might be the follwoing\n# \"standard\" environment that can be read by anyone:\npermit.env LANG\npermit.env OS\npermit.env SHELL\n\n# List all potentially malicious classes. These classes will be identified on\n# the call stack and if found, then permission checks will take place.\n# A regex with a $.* at the end declares all local or anonymous classes as potentially malicous.\n#\n# distrust.regex is evaluated against the whole classname, i. e. the specified regex is\n# automatically enclosed in ^...$ by the permcheck library.\n# This specifies all classes in a given package \"subm\" including nested classes:\n#\n#distrust.regex subm\\.[^\\.\\$]+(\\$[^\\.\\$]+)*\n# ^ classname starts here\n# ^ nested classes start here, possibly multiply nested\n\n\u00c2\u00a7[REGEX_DISTRUSTED]\u00c2\u00a7\n\n# Any code that is called in response of one of the following methods\n# is assumed to be trusted.\n# If we wouldn\'t trust these calls, then we would have to specify\n# e. g. permissions to read files like\n# <javahome>/conf/security/java.security\n# or\n# <javahome>/bin/net.dll\n# Privileges are a concept much like the AccessController.doPrivileged\n# concept of the SecurityManager.\n#\n# Privileges are specified in the format\n# privilege.plain <module>/<fully.qualified.classname>#<methodname>\n# e. g.\n# privilege.plain java.base/java.security.Security::initialize\n#\n# Constructors are specified literally as ::<init>\n# Static initializers are specified literally as ::<clinit>\n\nprivilege.plain java.base/java.lang.Class::getEnumConstantsShared\nprivilege.plain java.base/java.util.ResourceBundle::getLoader\nprivilege.plain java.base/java.util.ResourceBundle::loadBundle\nprivilege.plain java.base/sun.util.resources.Bundles::loadBundleFromProviders\nprivilege.plain java.base/sun.util.resources.LocaleData::getBundle\nprivilege.plain java.base/sun.util.locale.provider.LocaleProviderAdapter::<clinit>\nprivilege.plain java.base/sun.util.cldr.CLDRLocaleProviderAdapter::<init>\nprivilege.plain java.base/sun.util.locale.provider.LocaleResources::<clinit>\nprivilege.plain java.base/sun.util.locale.provider.LocaleProviderAdapter::forType\nprivilege.plain java.base/java.lang.ProcessHandleImpl::<clinit>\nprivilege.plain java.base/java.lang.ProcessImpl::<init>\nprivilege.plain java.base/java.lang.ProcessImpl::initStreams\nprivilege.plain java.base/java.lang.ProcessImpl$Platform::launchMechanism\nprivilege.plain java.base/java.lang.ProcessImpl::launchMechanism\nprivilege.plain java.base/java.lang.invoke.InnerClassLambdaMetafactory::buildCallSite\nprivilege.plain java.base/java.lang.StackWalker::<clinit>\nprivilege.plain java.base/java.lang.System::getLogger\nprivilege.plain java.base/java.lang.Thread::isCCLOverridden\nprivilege.plain java.base/java.net.InetAddress::<clinit>\nprivilege.plain java.base/sun.net.InetAddressCachePolicy::<clinit>\nprivilege.plain java.base/java.util.concurrent.atomic.Striped64::<clinit>\nprivilege.plain java.base/sun.nio.ch.DatagramSocketAdaptor$DatagramPackets::<clinit>\nprivilege.plain java.base/sun.nio.ch.DatagramSocketAdaptor$DatagramSockets::<clinit>\nprivilege.plain java.base/java.io.ObjectStreamClass::<init>\nprivilege.plain java.base/java.util.EnumSet::noneOf\nprivilege.plain java.base/java.util.Scanner::<clinit>\nprivilege.plain java.base/java.security.Security::initialize\nprivilege.plain java.base/java.security.SecureRandom::<init>\nprivilege.plain java.base/java.security.SecureRandom::next\nprivilege.plain java.base/java.text.DateFormatSymbols::<init>\nprivilege.plain java.base/jdk.internal.util.random.RandomSupport::secureRandomSeedRequested\nprivilege.plain java.base/jdk.internal.logger.AbstractLoggerWrapper::isLoggable\nprivilege.plain java.base/jdk.internal.loader.BuiltinClassLoader::findClassOnClassPathOrNull\nprivilege.plain java.base/jdk.internal.loader.BootLoader::loadLibrary\nprivilege.plain java.base/sun.util.calendar.ZoneInfoFile::<clinit>\nprivilege.plain null/org.junit.runner.JUnitCore::run\nprivilege.plain java.compiler/javax.tools.ToolProvider::getSystemJavaCompiler\nprivilege.plain java.compiler/javax.tools.JavaCompiler::getStandardFileManager\nprivilege.plain jdk.compiler/com.sun.tools.javac.api.JavacTool::getStandardFileManager\nprivilege.plain jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl::call\nprivilege.regex javafx\\.base/[A-Za-z\\.]+::<clinit>\nprivilege.regex javafx\\.graphics/[A-Za-z\\.]+::<clinit>\nprivilege.regex javafx\\.controls/[A-Za-z\\.]+::<clinit>\nprivilege.plain javafx.graphics/javafx.scene.Node::processCSS\nprivilege.plain javafx.graphics/javafx.stage.Window::show\nprivilege.plain javafx.graphics/com.sun.javafx.font.PrismFontFactory::getFontFactory\nprivilege.plain javafx.graphics/com.sun.javafx.font.PrismFontFactory::getFontResource\nprivilege.plain javafx.graphics/com.sun.javafx.font.PrismFontFactory::getDefaultFontResource\nprivilege.regex java\\.desktop/javax\\.swing\\.[A-Za-z\\.]+::<clinit>\nprivilege.regex java\\.desktop/java\\.awt\\.[A-Za-z\\.]+::<clinit>\nprivilege.plain java.desktop/java.awt.Desktop::isDesktopSupported\nprivilege.plain java.desktop/java.awt.Desktop::getDesktop\nprivilege.plain java.desktop/javax.swing.UIManager::loadSwingProperties\nprivilege.plain java.desktop/javax.swing.JFrame::<init>\nprivilege.plain jdk.net/jdk.net.WindowsSocketOptions::<clinit>\nprivilege.plain jdk.net/jdk.net.LinuxSocketOptions::<clinit>\nprivilege.plain jdk.net/jdk.net.MacOSXSocketOptions::<clinit>\nprivilege.plain java.base/sun.net.util.SocketExceptions::<clinit>\nprivilege.plain java.base/sun.net.NetHooks::<clinit>\n\n\n# Since we enable permcheck immediately before running junit and disable it\n# immediately afterwards, there is only little permissions needed inside the\n# Graja Core code:\nprivilege.plain de.hsh.graja.core/de.hsh.graja.core.Core::gradeAssignment\n# The following method calls Class.getDeclaredMethods for a log output:\nprivilege.plain de.hsh.graja.modules.junit/de.hsh.graja.modules.junit.SubmissionClassLoader::loadClassFromFileObject\n\n# But we need permissions in the Grader classes:\n#\n# We construct a regular expression for an arbitrary method name:\n# - First character is a LETTER \\p{L}, a LETTER_NUMBER \\p{Nl} or a CONNECTOR_PUNCTUATION character \\p{Pc}\n# - The following characters are LETTER, LETTER_NUMBER, CONNECTOR_PUNCTUATION or\n# DECIMAL_DIGIT \\p{Nd} or COMBINING_SPACING_MARK \\p{Mc} or NON_SPACING_MARK \\p{Mn} or FORMAT character \\p{Cf}\n# Together:\n# [\\p{L}\\p{Nl}\\p{Pc}][\\p{L}\\p{Nl}\\p{Pc}\\p{Nd}\\p{Mc}\\p{Mn}\\p{Cf}]*\n\nprivilege.regex null/\u00c2\u00a7[GRADER_PRIVILEGE]\u00c2\u00a7::[\\p{L}\\p{Nl}\\p{Pc}][\\p{L}\\p{Nl}\\p{Pc}\\p{Nd}\\p{Mc}\\p{Mn}\\p{Cf}]*\n\n"
"\u00c2\u00a7[GRADER_PRIVILEGE]\u00c2\u00a7"
"\u00c2\u00a7[REGEX_DISTRUSTED]\u00c2\u00a7"
"\u00c2\u00a7[WORKSPACE_DIR]\u00c2\u00a7"