Skip to content

Commit

Permalink
spawn/Init: allow system call "sigaltstack" for libasan
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Oct 26, 2023
1 parent aa0e288 commit 302997e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/spawn/Init.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ LimitSysCalls(FileDescriptor read_fd, pid_t kill_pid)
ignores this (to prevent SIGKILL) */
sf.AddRule(SCMP_ACT_ERRNO(ENOMEM), SCMP_SYS(brk));

/* needed by libasan (if AddressSanitizer is enabled) */
sf.AddRule(SCMP_ACT_ALLOW, SCMP_SYS(sigaltstack));

sf.Load();
}

Expand Down

0 comments on commit 302997e

Please sign in to comment.