diff options
author | Christopher Ferris <cferris@google.com> | 2019-09-17 15:31:47 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2019-09-17 15:31:47 -0700 |
commit | ab60668ef47166961cd356006114baf742567fdd (patch) | |
tree | dca1f1f23bd4ff8cc94852981897b8f4390d94c6 /debuggerd/debuggerd_test.cpp | |
parent | e5e9ee41d9de64db195095c2ed7a2474c2374a34 (diff) |
Allow getrlimit/ugetrlimit syscalls in tests.
The fdsan code uses getrlimit/ugetrlimit so need to allow that when
running the debuggerd unit tests.
Bug: 141045754
Test: Ran the offending tests hundreds of times without failure.
Change-Id: Iece94f03e7895d61ca8a8f3ab17dce7e54ddf9cd
Diffstat (limited to 'debuggerd/debuggerd_test.cpp')
-rw-r--r-- | debuggerd/debuggerd_test.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/debuggerd/debuggerd_test.cpp b/debuggerd/debuggerd_test.cpp index fbc8b9706..c86a01839 100644 --- a/debuggerd/debuggerd_test.cpp +++ b/debuggerd/debuggerd_test.cpp @@ -603,6 +603,8 @@ static pid_t seccomp_fork_impl(void (*prejail)()) { policy += "\nclone: 1"; policy += "\nsigaltstack: 1"; policy += "\nnanosleep: 1"; + policy += "\ngetrlimit: 1"; + policy += "\nugetrlimit: 1"; FILE* tmp_file = tmpfile(); if (!tmp_file) { |