aboutsummaryrefslogtreecommitdiff
path: root/devel/electron33/files/patch-sandbox_policy_switches.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron33/files/patch-sandbox_policy_switches.cc')
-rw-r--r--devel/electron33/files/patch-sandbox_policy_switches.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/devel/electron33/files/patch-sandbox_policy_switches.cc b/devel/electron33/files/patch-sandbox_policy_switches.cc
new file mode 100644
index 000000000000..10454848c71a
--- /dev/null
+++ b/devel/electron33/files/patch-sandbox_policy_switches.cc
@@ -0,0 +1,26 @@
+--- sandbox/policy/switches.cc.orig 2024-10-16 21:31:37 UTC
++++ sandbox/policy/switches.cc
+@@ -55,10 +55,10 @@ const char kMirroringSandbox[] = "mirroring";
+ const char kMirroringSandbox[] = "mirroring";
+ #endif // BUILDFLAG(IS_MAC)
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD)
+ const char kHardwareVideoDecodingSandbox[] = "hardware_video_decoding";
+ #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ const char kHardwareVideoEncodingSandbox[] = "hardware_video_encoding";
+ #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+
+@@ -98,7 +98,9 @@ const char kNoSandbox[] = "no-sandbox";
+ // Meant to be used as a browser-level switch for testing purposes only.
+ const char kNoSandbox[] = "no-sandbox";
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++const char kDisableUnveil[] = "disable-unveil";
++
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ // Instructs the zygote to launch without a sandbox. Processes forked from this
+ // type of zygote will apply their own custom sandboxes later.
+ const char kNoZygoteSandbox[] = "no-zygote-sandbox";