X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fbox.c;h=3dc4a199b0930908d38dde0cc4cac6280ae1e00a;hb=3ee2e239596ff6da044bdeeae2e9fdeded48c4a5;hp=77b0a70afc6b2f6f490a40ac1e127eb2f6f76447;hpb=716ea38bbfb7ced88ce5d0d19a87de736a013446;p=eval.git diff --git a/src/box.c b/src/box.c index 77b0a70..3dc4a19 100644 --- a/src/box.c +++ b/src/box.c @@ -35,6 +35,7 @@ static int use_wall_clock; static int file_access; static int verbose; static int memory_limit; +static int allow_times; static char *redir_stdin, *redir_stdout; static pid_t box_pid; @@ -207,6 +208,7 @@ valid_syscall(struct user *u) case SYS_munmap: case SYS_ioctl: case SYS_uname: + case 252: return 1; case SYS_time: case SYS_alarm: @@ -246,6 +248,8 @@ valid_syscall(struct user *u) case SYS_mmap2: case SYS__sysctl: return (filter_syscalls == 1); + case SYS_times: + return allow_times; default: return 0; } @@ -472,6 +476,7 @@ Options:\n\ -m \tLimit address space to KB\n\ -o \tRedirect stdout to \n\ -t