Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab60668e authored by Christopher Ferris's avatar Christopher Ferris
Browse files

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
parent e5e9ee41
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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) {