Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

Sandbox

Tor (torbuntu) edited this page Apr 17, 2021 · 4 revisions

The sandbox is applied automatically when Leikr is ran by one of the scripts in the release zip, or if you run java -jar Leikr.jar

If you'd like to purposely run without a sandbox, you can add the parameter insecure to either the scripts or when you run from a terminal.

Leikr 1.0.5+

Since 1.0.5 Leikr is being transitioned away from using the Java Policy file which is proving difficult to manage with a single Jar, and instead favoring a custom Groovy Class Loader. This class loader has a checker that will flag specific packages and class names from being used.

The current list is as follows:

Class
"java.io.File"
"java.lang.System"
"java.lang.ClassLoader"
"groovy.lang.GroovyClassLoader"
"groovy.lang.GroovyShell"
Packages
"java.net"

The primary idea is to keep games and programs locked into the Leikr sub directory, and prevent them from access external resources including web calls. If I am missing some critical packages or classes for that please post an Issue so I can add and test it.

Contents

Home

API

under construction for version 1.10.1

Clone this wiki locally