Commit Graph

95 Commits

Author SHA1 Message Date
spxcds
64c921d71e 把judger.c中的异常替换为宏 2016-04-04 18:08:04 +08:00
virusdefender
960e8c213f fix typo 2016-04-02 16:29:05 +08:00
virusdefender
f8c6f4595e Merge branch 'unlimited'
* unlimited:
  add check for unlimited
  增加不限制时间和内存的选项
  fix wrong path in tests

Conflicts:
	tests/test.py
2016-03-31 19:50:45 +08:00
virusdefender
17c214c5c6 add check for unlimited 2016-03-31 19:34:15 +08:00
virusdefender
2577bec965 增加不限制时间和内存的选项 2016-03-31 19:24:07 +08:00
virusdefender
4315efac56 fix wrong path in tests 2016-03-31 18:33:58 +08:00
virusdefender
5304fe4433 修复最大内存限制数字可能溢出的问题
将int改为了long
2016-03-22 14:32:44 +08:00
virusdefender
62f6e7a8ed fix broken tests 2016-03-18 13:18:02 +08:00
virusdefender
62619ae9da 完善测试;修改部分异常原因的写法 2016-03-18 13:12:20 +08:00
virusdefender
e54f95b3de 增加部分参数检查 2016-03-18 12:42:46 +08:00
virusdefender
78cfd92740 修复部分情况下getpwnam的调用失败的问题 2016-03-18 11:50:10 +08:00
virusdefender
54bdc8f564 fix typo 2016-03-18 10:23:22 +08:00
virusdefender
03e425b0d6 增加参数检查测试 2016-03-18 10:14:14 +08:00
virusdefender
656c04f35a fix typo 2016-03-17 21:58:07 +08:00
virusdefender
238eb4ab17 去除部分硬编码;判断语句不再省略参数值 2016-03-17 21:10:35 +08:00
virusdefender
7f215ccb5a 增加参数检查
- 使用nobody之前检查是否是root用户
 - 限制参数和环境变量数量
2016-03-13 15:07:10 +08:00
virusdefender
8aaf862224 avoid 0 ms cpu time 2016-03-11 20:54:56 +08:00
virusdefender
879464ce95 update readme [ci skip] 2016-03-02 19:43:29 +08:00
virusdefender
c855c8ada3 测试用例增加了部分说明 2016-03-02 19:36:26 +08:00
virusdefender
307ce133fc 将使用nobody参数分离出来 2016-03-02 19:36:14 +08:00
virusdefender
b6255b4c96 返回 exit_status 并增加相关测试用例 2016-02-02 11:53:42 +08:00
virusdefender
b50775c417 返回值非0的时候也认为是 RE 2016-02-02 11:38:37 +08:00
virusdefender
35704a39a3 delete error test cases 2016-02-01 21:37:09 +08:00
virusdefender
4758b09c2b redirect stderr to stdout 2016-02-01 20:58:13 +08:00
virusdefender
0e5021b33d add gcc compile demo 2016-02-01 18:39:17 +08:00
virusdefender
b2bf385d5c fix compile warning 2016-02-01 18:35:31 +08:00
virusdefender
9ef79e8d9f add logger 2016-02-01 13:23:54 +08:00
virusdefender
e5933e7161 add license and thanks [ci skip] 2016-01-24 10:46:17 +08:00
virusdefender
dc6be928e7 update readme [ci skip] 2016-01-24 10:33:25 +08:00
virusdefender
77e522c279 add some tests 2016-01-24 10:22:30 +08:00
virusdefender
92d1f7fb61 add env test 2016-01-24 10:00:40 +08:00
virusdefender
baa924ec52 read test config from file 2016-01-23 21:50:22 +08:00
virusdefender
2299a0cd07 add args test 2016-01-23 19:09:17 +08:00
virusdefender
6eba6a912d update demo 2016-01-23 18:56:45 +08:00
virusdefender
018d2b2d73 Accept Merge Request #3 add tests : (tests -> master)
Merge Request: add tests
Created By: @virusdefender
Accepted By: @virusdefender
URL: https://coding.net/u/virusdefender/p/judger/git/merge/3
2016-01-23 18:19:40 +08:00
virusdefender
f7cad29eef add tests
Squash from a494eed to 1974b83 by virusdefender
2016-01-23 18:19:34 +08:00
virusdefender
78d5d6388a fix unused warning 2016-01-23 15:36:34 +08:00
virusdefender
741a4c5541 delete error field 2016-01-23 15:34:48 +08:00
virusdefender
7bc08802b3 add set_uid and set_id, root required 2016-01-23 15:05:24 +08:00
virusdefender
7cd5d5d41a add default value for use_sandbox 2016-01-23 14:51:37 +08:00
virusdefender
f30b0a4d56 use ValueError instead of judger.error 2016-01-22 15:30:42 +08:00
virusdefender
9a120eb2a1 update demo 2016-01-22 10:13:38 +08:00
virusdefender
7285a16ce2 update use_sandbox option 2016-01-22 10:11:16 +08:00
virusdefender
da1a446946 add use_sandbox parameter 2016-01-22 10:01:08 +08:00
virusdefender
11ace673e2 child process raise signal when error occurred; add some check 2016-01-21 23:36:39 +08:00
virusdefender
e89530b95a add seccomp rule for syscall write 2016-01-20 21:07:51 +08:00
virusdefender
c87ba29500 Merge branch 'master' into fix_sandbox 2016-01-20 20:17:15 +08:00
virusdefender
c44ff13736 args list and env list parameters now support default value 2016-01-20 20:13:48 +08:00
virusdefender
3aed8b78a2 Merge branch 'fix_sandbox'
* fix_sandbox:
  update test.c
  drop whole exexce rule
  fix error exception name which casued segment fault
  add extra syscalls to enable glibc init
  add extra rules for execve
  add seccomp in runner
2016-01-20 16:14:36 +08:00
virusdefender
5e2c37532f delete sandbox.c 2016-01-20 16:14:14 +08:00