blob: 74220e23bacb990c3ac72610ab4f9bcc8c820d32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
diff '--color=auto' -Naur a/security/sandbox/linux/Sandbox.cpp b/security/sandbox/linux/Sandbox.cpp
--- a/security/sandbox/linux/Sandbox.cpp 2025-12-08 16:42:41.692767283 +0200
+++ b/security/sandbox/linux/Sandbox.cpp 2025-12-08 17:08:51.260959576 +0200
@@ -18,9 +18,7 @@
#include "SandboxLogging.h"
#include <dirent.h>
-#ifdef NIGHTLY_BUILD
-# include "dlfcn.h"
-#endif
+#include <dlfcn.h>
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
@@ -776,7 +774,7 @@
files->Add("/proc/stat", SandboxOpenedFile::Error{});
files->Add("/proc/net/unix", SandboxOpenedFile::Error{});
files->Add("/proc/self/maps", SandboxOpenedFile::Error{});
-
+ (void)dlopen("libgcc_s.so.1", RTLD_GLOBAL|RTLD_LAZY);
// Finally, start the sandbox.
SetCurrentProcessSandbox(GetMediaSandboxPolicy(files));
}
|