Allow restartable sequences' mmaps to name their VMAs.

PiperOrigin-RevId: 596593499
Change-Id: Ice231b633758667947ec31da5c22f146847e6c6f
This commit is contained in:
Chris Kennelly 2024-01-08 07:56:48 -08:00 committed by Copybara-Service
parent fc610b7c7a
commit a56660f542

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);