Bug 1965563 - Allow clock_gettime(CLOCK_MONOTONIC_RAW, ...) in content processes. r=gcp

Differential Revision: https://phabricator.services.mozilla.com/D250262
This commit is contained in:
Paul Adenot
2025-05-20 15:24:46 +00:00
committed by padenot@mozilla.com
parent 0f073af20c
commit 04fd4878ad

View File

@@ -951,6 +951,9 @@ class SandboxPolicyCommon : public SandboxPolicyBase {
#ifdef CLOCK_MONOTONIC_COARSE
// Used by SandboxReporter, among other things.
.ElseIf(clk_id == CLOCK_MONOTONIC_COARSE, Allow())
#endif
#ifdef CLOCK_MONOTONIC_RAW
.ElseIf(clk_id == CLOCK_MONOTONIC_RAW, Allow())
#endif
.ElseIf(clk_id == CLOCK_PROCESS_CPUTIME_ID, Allow())
.ElseIf(clk_id == CLOCK_REALTIME, Allow())