Allow restartable sequences' mmaps to name their VMAs.

PiperOrigin-RevId: 596593499
Change-Id: Ice231b633758667947ec31da5c22f146847e6c6f
pull/171/head
Chris Kennelly 2024-01-08 07:56:48 -08:00 committed by Copybara-Service
parent fc610b7c7a
commit a56660f542
1 changed files with 1 additions and 0 deletions

View File

@ -773,6 +773,7 @@ PolicyBuilder& PolicyBuilder::AllowRestartableSequences(
ARG_32(0),
JEQ32(SIG_SETMASK, ALLOW),
});
AllowPrctlSetVma();
if (cpu_fence_mode == kAllowSlowFences) {
AllowSyscall(__NR_sched_getaffinity);
AllowSyscall(__NR_sched_setaffinity);