├── .gitignore ├── .travis.yml ├── CMakeLists.txt ├── LICENSE ├── README.md ├── bindings ├── Lua │ ├── LICENSE │ ├── Makefile │ └── judger.c ├── NodeJS │ ├── binding.gyp │ ├── judger.cc │ ├── package.json │ └── readme.md └── Python │ ├── .gitignore │ ├── _judger │ └── __init__.py │ ├── pyproject.toml │ └── setup.cfg ├── demo ├── 1.in ├── demo.py └── main.c ├── src ├── argtable3.c ├── argtable3.h ├── child.c ├── child.h ├── killer.c ├── killer.h ├── logger.c ├── logger.h ├── main.c ├── rules │ ├── c_cpp.c │ ├── c_cpp_file_io.c │ ├── general.c │ ├── golang.c │ ├── node.c │ └── seccomp_rules.h ├── runner.c └── runner.h └── tests ├── Dockerfile-16.04 ├── Dockerfile-18.04 ├── Nodejs_and_core ├── base.js └── test_integration.js ├── Python_and_core ├── __init__.py ├── test.py └── testcase │ ├── __init__.py │ ├── base.py │ ├── integration │ ├── __init__.py │ └── test.py │ └── seccomp │ ├── __init__.py │ └── test.py ├── runtest.sh └── test_src ├── integration ├── args.c ├── child_proc_cpu_time_limit.c ├── child_proc_real_time_limit.c ├── cpp_meta.cpp ├── env.c ├── gcc_random.c ├── math.c ├── memory1.c ├── memory2.c ├── memory3.c ├── normal.c ├── output_size.c ├── re1.c ├── re2.c ├── sleep.c ├── stack.c ├── stdout_stderr.c ├── time.c ├── uid_gid.c ├── while1.c └── writev.cpp └── seccomp ├── execve.c ├── execveat.c ├── fork.c ├── sysinfo.c ├── write_file_open.c └── write_file_openat.c /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/.travis.yml -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/README.md -------------------------------------------------------------------------------- /bindings/Lua/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/bindings/Lua/LICENSE -------------------------------------------------------------------------------- /bindings/Lua/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/bindings/Lua/Makefile -------------------------------------------------------------------------------- /bindings/Lua/judger.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/bindings/Lua/judger.c -------------------------------------------------------------------------------- /bindings/NodeJS/binding.gyp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/bindings/NodeJS/binding.gyp -------------------------------------------------------------------------------- /bindings/NodeJS/judger.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/bindings/NodeJS/judger.cc -------------------------------------------------------------------------------- /bindings/NodeJS/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/bindings/NodeJS/package.json -------------------------------------------------------------------------------- /bindings/NodeJS/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/bindings/NodeJS/readme.md -------------------------------------------------------------------------------- /bindings/Python/.gitignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | build/ 3 | *.egg-info/ 4 | -------------------------------------------------------------------------------- /bindings/Python/_judger/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/bindings/Python/_judger/__init__.py -------------------------------------------------------------------------------- /bindings/Python/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/bindings/Python/pyproject.toml -------------------------------------------------------------------------------- /bindings/Python/setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/bindings/Python/setup.cfg -------------------------------------------------------------------------------- /demo/1.in: -------------------------------------------------------------------------------- 1 | World 2 | -------------------------------------------------------------------------------- /demo/demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/demo/demo.py -------------------------------------------------------------------------------- /demo/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/demo/main.c -------------------------------------------------------------------------------- /src/argtable3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/src/argtable3.c -------------------------------------------------------------------------------- /src/argtable3.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/src/argtable3.h -------------------------------------------------------------------------------- /src/child.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/src/child.c -------------------------------------------------------------------------------- /src/child.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/src/child.h -------------------------------------------------------------------------------- /src/killer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/src/killer.c -------------------------------------------------------------------------------- /src/killer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/src/killer.h -------------------------------------------------------------------------------- /src/logger.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/src/logger.c -------------------------------------------------------------------------------- /src/logger.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/src/logger.h -------------------------------------------------------------------------------- /src/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/src/main.c -------------------------------------------------------------------------------- /src/rules/c_cpp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/src/rules/c_cpp.c -------------------------------------------------------------------------------- /src/rules/c_cpp_file_io.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/src/rules/c_cpp_file_io.c -------------------------------------------------------------------------------- /src/rules/general.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/src/rules/general.c -------------------------------------------------------------------------------- /src/rules/golang.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/src/rules/golang.c -------------------------------------------------------------------------------- /src/rules/node.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/src/rules/node.c -------------------------------------------------------------------------------- /src/rules/seccomp_rules.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/src/rules/seccomp_rules.h -------------------------------------------------------------------------------- /src/runner.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/src/runner.c -------------------------------------------------------------------------------- /src/runner.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/src/runner.h -------------------------------------------------------------------------------- /tests/Dockerfile-16.04: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/Dockerfile-16.04 -------------------------------------------------------------------------------- /tests/Dockerfile-18.04: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/Dockerfile-18.04 -------------------------------------------------------------------------------- /tests/Nodejs_and_core/base.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/Nodejs_and_core/base.js -------------------------------------------------------------------------------- /tests/Nodejs_and_core/test_integration.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/Nodejs_and_core/test_integration.js -------------------------------------------------------------------------------- /tests/Python_and_core/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Python_and_core/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/Python_and_core/test.py -------------------------------------------------------------------------------- /tests/Python_and_core/testcase/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Python_and_core/testcase/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/Python_and_core/testcase/base.py -------------------------------------------------------------------------------- /tests/Python_and_core/testcase/integration/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Python_and_core/testcase/integration/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/Python_and_core/testcase/integration/test.py -------------------------------------------------------------------------------- /tests/Python_and_core/testcase/seccomp/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Python_and_core/testcase/seccomp/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/Python_and_core/testcase/seccomp/test.py -------------------------------------------------------------------------------- /tests/runtest.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/runtest.sh -------------------------------------------------------------------------------- /tests/test_src/integration/args.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/args.c -------------------------------------------------------------------------------- /tests/test_src/integration/child_proc_cpu_time_limit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/child_proc_cpu_time_limit.c -------------------------------------------------------------------------------- /tests/test_src/integration/child_proc_real_time_limit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/child_proc_real_time_limit.c -------------------------------------------------------------------------------- /tests/test_src/integration/cpp_meta.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/cpp_meta.cpp -------------------------------------------------------------------------------- /tests/test_src/integration/env.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/env.c -------------------------------------------------------------------------------- /tests/test_src/integration/gcc_random.c: -------------------------------------------------------------------------------- 1 | #include -------------------------------------------------------------------------------- /tests/test_src/integration/math.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/math.c -------------------------------------------------------------------------------- /tests/test_src/integration/memory1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/memory1.c -------------------------------------------------------------------------------- /tests/test_src/integration/memory2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/memory2.c -------------------------------------------------------------------------------- /tests/test_src/integration/memory3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/memory3.c -------------------------------------------------------------------------------- /tests/test_src/integration/normal.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/normal.c -------------------------------------------------------------------------------- /tests/test_src/integration/output_size.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/output_size.c -------------------------------------------------------------------------------- /tests/test_src/integration/re1.c: -------------------------------------------------------------------------------- 1 | int main() 2 | { 3 | return 25; 4 | } -------------------------------------------------------------------------------- /tests/test_src/integration/re2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/re2.c -------------------------------------------------------------------------------- /tests/test_src/integration/sleep.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/sleep.c -------------------------------------------------------------------------------- /tests/test_src/integration/stack.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/stack.c -------------------------------------------------------------------------------- /tests/test_src/integration/stdout_stderr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/stdout_stderr.c -------------------------------------------------------------------------------- /tests/test_src/integration/time.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/time.c -------------------------------------------------------------------------------- /tests/test_src/integration/uid_gid.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/uid_gid.c -------------------------------------------------------------------------------- /tests/test_src/integration/while1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/while1.c -------------------------------------------------------------------------------- /tests/test_src/integration/writev.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/integration/writev.cpp -------------------------------------------------------------------------------- /tests/test_src/seccomp/execve.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/seccomp/execve.c -------------------------------------------------------------------------------- /tests/test_src/seccomp/execveat.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/seccomp/execveat.c -------------------------------------------------------------------------------- /tests/test_src/seccomp/fork.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/seccomp/fork.c -------------------------------------------------------------------------------- /tests/test_src/seccomp/sysinfo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/seccomp/sysinfo.c -------------------------------------------------------------------------------- /tests/test_src/seccomp/write_file_open.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/seccomp/write_file_open.c -------------------------------------------------------------------------------- /tests/test_src/seccomp/write_file_openat.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QingdaoU/Judger/HEAD/tests/test_src/seccomp/write_file_openat.c --------------------------------------------------------------------------------