aboutsummaryrefslogtreecommitdiffstats
path: root/devel/electron38/files/patch-sandbox_linux_BUILD.gn
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2025-10-05 09:19:31 +0100
committerLexi Winter <ivy@FreeBSD.org>2025-10-05 09:19:31 +0100
commitf85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (patch)
treead799ccacfb459b809b02b9c115ed4befb93b4c1 /devel/electron38/files/patch-sandbox_linux_BUILD.gn
parent0b1510fe1f98f82da6f3481cb6c58957022d9211 (diff)
parentb057c68280a2f2a7b3d1fbac36f7b034e1fdf593 (diff)
Merge remote-tracking branch 'freebsd/main' into lf/main
Diffstat (limited to 'devel/electron38/files/patch-sandbox_linux_BUILD.gn')
-rw-r--r--devel/electron38/files/patch-sandbox_linux_BUILD.gn35
1 files changed, 35 insertions, 0 deletions
diff --git a/devel/electron38/files/patch-sandbox_linux_BUILD.gn b/devel/electron38/files/patch-sandbox_linux_BUILD.gn
new file mode 100644
index 000000000000..a0f041c53b88
--- /dev/null
+++ b/devel/electron38/files/patch-sandbox_linux_BUILD.gn
@@ -0,0 +1,35 @@
+--- sandbox/linux/BUILD.gn.orig 2025-08-26 20:49:50 UTC
++++ sandbox/linux/BUILD.gn
+@@ -11,11 +11,11 @@ declare_args() {
+ }
+
+ 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
+@@ -373,6 +373,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") {