mosys: whitelist prlimit64 in seccomp

This whitelist prlimit64 in seccomp because coreutils is calling this
system call. The api for prlimit is
int prlimit(pid_t pid, int resource, const struct rlimit *new_limit,
 struct rlimit *old_limit);
To block setrlimit, we need to allow calls where *new_limit is NULL.

BUG=chromium:894936
TEST=no crash on coreutils

Change-Id: I8c6aff7dd7106846d88e7142350b6b6fbca51667
Reviewed-on: https://chromium-review.googlesource.com/1281364
Commit-Ready: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
2 files changed