Drop Project Security Manager

Used by Drop Project to create a sandbox for students submissions

Лицензия

Лицензия

Категории

Категории

Безопасность
Группа

Группа

pt.ulusofona.deisi
Идентификатор

Идентификатор

drop-project-security-manager
Последняя версия

Последняя версия

0.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

Drop Project Security Manager
Used by Drop Project to create a sandbox for students submissions
Ссылка на сайт

Ссылка на сайт

https://github.com/drop-project-edu/sandbox-security-manager
Система контроля версий

Система контроля версий

https://github.com/drop-project-edu/sandbox-security-manager

Скачать drop-project-security-manager

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/pt.ulusofona.deisi/drop-project-security-manager/ -->
<dependency>
    <groupId>pt.ulusofona.deisi</groupId>
    <artifactId>drop-project-security-manager</artifactId>
    <version>0.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/pt.ulusofona.deisi/drop-project-security-manager/
implementation 'pt.ulusofona.deisi:drop-project-security-manager:0.1.1'
// https://jarcasting.com/artifacts/pt.ulusofona.deisi/drop-project-security-manager/
implementation ("pt.ulusofona.deisi:drop-project-security-manager:0.1.1")
'pt.ulusofona.deisi:drop-project-security-manager:jar:0.1.1'
<dependency org="pt.ulusofona.deisi" name="drop-project-security-manager" rev="0.1.1">
  <artifact name="drop-project-security-manager" type="jar" />
</dependency>
@Grapes(
@Grab(group='pt.ulusofona.deisi', module='drop-project-security-manager', version='0.1.1')
)
libraryDependencies += "pt.ulusofona.deisi" % "drop-project-security-manager" % "0.1.1"
[pt.ulusofona.deisi/drop-project-security-manager "0.1.1"]

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

Drop Project Security Manager

Custom Security Manager used by Drop Project to sandbox students' submissions.

Current checks include:

  • Calling System.exit()
  • Trying to read a file outside the working dir (or one of its subdirs)
  • Trying to write a file outside the working dir (or one of its subdirs)

Any of these will be detected by the Security Manager and will lead to a SecurityException being thrown.

How to use

Include the following dependency on your pom file:

<dependency>
    <groupId>pt.ulusofona.deisi</groupId>
    <artifactId>drop-project-security-manager</artifactId>
    <version>0.1.1</version>
</dependency>

Now, just set the security manager when calling your application like this:

java -Djava.security.manager=org.dropProject.security.SandboxSecurityManager YourMainClass
pt.ulusofona.deisi

Версии библиотеки

Версия
0.1.1
0.1.0