Skip to content

haomingbai/bsdbx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bsdbx

This is a simple sandbox focusing only on limiting some system calls of a program.

Usage

bsdbx $COMMAND --mode=$MODE $ARGS
bsdbx $COMMAND -m $MODE $ARGS
bsdbx $COMMAND --mode $MODE $ARGS
bsdbx $COMMAND $ARGS # Default mode is runner
bsdbx $COMMAND --memory-limit=$MEMORY_LIMIT $ARGS
bsdbx $COMMAND --memory-limit $MEMORY_LIMIT $ARGS
bsdbx $COMMAND --time-limit=$TIME_LIMIT $ARGS
bsdbx $COMMAND --time-limit $TIME_LIMIT $ARGS
bsdbx $COMMAND -t $TIME_LIMIT $ARGS

There are two modes for this command, namely "runner" and "compiler". While runner mode is stricter than the compiler mode.

Example

./bsdbx /bin/c++ --mode=compiler a.cpp -o a # Run with args
./bsdbx /bin/a --mode=runner # Without extra args
./bsdbx /bin/a # runner mode by default
./bsdbx /bin/a --memory-limit=10000 # With memory limit
./bsdbx /bin/a --time-limit=1000 # With time limit

See also

boxjan/sandbox

About

A simple sandbox which can load a executable file and has only some restricions on security

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors