2023-03-13 11:56:24 +01:00
|
|
|
--- content/browser/utility_sandbox_delegate.cc.orig 2023-03-13 07:33:08 UTC
|
2022-03-30 17:18:34 +02:00
|
|
|
+++ content/browser/utility_sandbox_delegate.cc
|
2023-03-13 11:56:24 +01:00
|
|
|
@@ -64,13 +64,13 @@ UtilitySandboxedProcessLauncherDelegate::
|
2022-12-01 15:19:28 +01:00
|
|
|
#if BUILDFLAG(ENABLE_PPAPI)
|
2022-03-30 17:18:34 +02:00
|
|
|
sandbox_type_ == sandbox::mojom::Sandbox::kPpapi ||
|
|
|
|
#endif
|
|
|
|
-#if BUILDFLAG(IS_FUCHSIA)
|
|
|
|
+#if BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
|
|
|
|
sandbox_type_ == sandbox::mojom::Sandbox::kVideoCapture ||
|
|
|
|
#endif
|
2022-10-05 14:43:40 +02:00
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
|
|
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD)
|
|
|
|
sandbox_type_ == sandbox::mojom::Sandbox::kHardwareVideoDecoding ||
|
|
|
|
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
|
2023-01-17 21:37:23 +01:00
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
|
|
sandbox_type_ == sandbox::mojom::Sandbox::kHardwareVideoEncoding ||
|
|
|
|
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
2022-10-05 14:43:40 +02:00
|
|
|
#if BUILDFLAG(IS_CHROMEOS_ASH)
|
2023-03-13 11:56:24 +01:00
|
|
|
@@ -117,10 +117,10 @@ ZygoteCommunication* UtilitySandboxedProcessLauncherDe
|
2022-10-05 14:43:40 +02:00
|
|
|
// unsandboxed zygote and then apply their actual sandboxes in the forked
|
|
|
|
// process upon startup.
|
|
|
|
if (sandbox_type_ == sandbox::mojom::Sandbox::kNetwork ||
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
|
|
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD)
|
|
|
|
sandbox_type_ == sandbox::mojom::Sandbox::kHardwareVideoDecoding ||
|
|
|
|
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
|
2023-01-17 21:37:23 +01:00
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
|
|
sandbox_type_ == sandbox::mojom::Sandbox::kHardwareVideoEncoding ||
|
|
|
|
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
2022-03-30 17:18:34 +02:00
|
|
|
#if BUILDFLAG(IS_CHROMEOS_ASH)
|