Skip to content

Commit

Permalink
Update judged.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Feb 11, 2025
1 parent eeeb340 commit e9984fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trunk/core/judged/judged.cc
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,10 @@ void run_client(int runid, int clientid) {
sprintf(data_v,"%s:/home/judge/data",follow);
if(follow!=data_path) {
printf("data volume param :%s \n",data_v);
execl(docker_path,docker_path, "container","run" ,"--pids-limit", "100","--rm","--cap-add","SYS_PTRACE", "--net=host",
execl(docker_path,docker_path, "container","run" ,"--pids-limit", "100","--rm","--cap-add","SYS_PTRACE", "--cap-add" ,"CAP_SYS_ADMIN" , "--net=host",
"-v", docker_v,"-v",data_v, "hustoj", client_path, runidstr, buf, (char *) NULL);
}else{
execl(docker_path,docker_path, "container","run" ,"--pids-limit", "100","--rm","--cap-add","SYS_PTRACE", "--net=host",
execl(docker_path,docker_path, "container","run" ,"--pids-limit", "100","--rm","--cap-add","SYS_PTRACE", "--cap-add" ,"CAP_SYS_ADMIN" , "--net=host",
"-v", docker_v, "hustoj", client_path, runidstr, buf, (char *) NULL);
}

Expand Down

0 comments on commit e9984fb

Please sign in to comment.