aboutsummaryrefslogtreecommitdiff
path: root/devel/electron23/files/patch-sandbox_linux_BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron23/files/patch-sandbox_linux_BUILD.gn')
-rw-r--r--devel/electron23/files/patch-sandbox_linux_BUILD.gn35
1 files changed, 35 insertions, 0 deletions
diff --git a/devel/electron23/files/patch-sandbox_linux_BUILD.gn b/devel/electron23/files/patch-sandbox_linux_BUILD.gn
new file mode 100644
index 000000000000..bee8304b8679
--- /dev/null
+++ b/devel/electron23/files/patch-sandbox_linux_BUILD.gn
@@ -0,0 +1,35 @@
+--- sandbox/linux/BUILD.gn.orig 2023-02-01 18:43:24 UTC
++++ sandbox/linux/BUILD.gn
+@@ -12,11 +12,11 @@ if (is_android) {
+ }
+
+ declare_args() {
+- compile_suid_client = is_linux || is_chromeos
++ compile_suid_client = (is_linux || is_chromeos) && !is_bsd
+
+- compile_credentials = is_linux || is_chromeos
++ compile_credentials = (is_linux || is_chromeos) && !is_bsd
+
+- compile_syscall_broker = is_linux || is_chromeos
++ compile_syscall_broker = (is_linux || is_chromeos) && !is_bsd
+
+ # On Android, use plain GTest.
+ use_base_test_suite = is_linux || is_chromeos
+@@ -379,6 +379,17 @@ component("sandbox_services") {
+ "services/libc_interceptor.h",
+ ]
+ }
++
++ if (is_bsd) {
++ sources -= [
++ "services/scoped_process.cc",
++ "services/scoped_process.h",
++ "services/syscall_wrappers.cc",
++ "services/syscall_wrappers.h",
++ "services/yama.cc",
++ "services/yama.h",
++ ]
++ }
+ }
+
+ source_set("sandbox_services_headers") {