From ea117c1dc8168053cedccccac00fbd0274e12ff7 Mon Sep 17 00:00:00 2001 From: Ella Stanforth Date: Sat, 7 May 2022 20:11:04 +0000 Subject: [PATCH] firefox-hg: fix build --- gui/firefox-hg/sandbox-allow-select.patch | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/gui/firefox-hg/sandbox-allow-select.patch b/gui/firefox-hg/sandbox-allow-select.patch index b78334a..ce38dfd 100644 --- a/gui/firefox-hg/sandbox-allow-select.patch +++ b/gui/firefox-hg/sandbox-allow-select.patch @@ -1,6 +1,13 @@ --- a/security/sandbox/linux/SandboxFilter.cpp +++ b/security/sandbox/linux/SandboxFilter.cpp -@@ -1999,6 +1999,9 @@ +@@ -1992,20 +1992,23 @@ + Arg new_limit(2); + return If(AllOf(pid == 0, new_limit == 0), Allow()) + .Else(InvalidSyscall()); + } + #endif // DESKTOP + + // Bug 1640612 case __NR_uname: return Allow(); @@ -10,3 +17,10 @@ default: return SandboxPolicyCommon::EvaluateSyscall(sysno); } + } + }; + + UniquePtr GetSocketProcessSandboxPolicy( + SandboxBrokerClient* aMaybeBroker) { + return UniquePtr( + new SocketProcessSandboxPolicy(aMaybeBroker));