//
pkg.gl
Category
github.com/criyle/go-sandbox
runner
package
0.11.2
Repository:
https://github.com/criyle/go-sandbox.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
4
Dependents
11
Files
158 SLOC
#
Packages
ptrace
No description provided by the author
unshare
Package unshare implements runner that uses Linux unshare syscall & mount namespace & rlimit to restrict program access.
#
Constants
StatusDisallowedSyscall
5 ban.
StatusInvalid
0 not initialized.
StatusMemoryLimitExceeded
3 mle.
StatusNonzeroExitStatus
7 nonzero exit status.
StatusNormal
1 normal.
StatusOutputLimitExceeded
4 ole.
StatusRunnerError
8 runner error.
StatusSignalled
6 signalled.
StatusTimeLimitExceeded
2 tle.
#
Structs
Limit
Limit represents the resource limit for traced process.
Result
Result is the program runner result.
#
Interfaces
Runner
Runner interface defines method to start running.
#
Type aliases
Size
Size stores number of byte for the object.
Status
Status is the result Status.