aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-services_screen__ai_sandbox_screen__ai__sandbox__hook__linux.cc
blob: 8b9d2a942f5cc71eee8e4c3568dd9ee102ab97c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- services/screen_ai/sandbox/screen_ai_sandbox_hook_linux.cc.orig	2024-04-19 13:02:56 UTC
+++ services/screen_ai/sandbox/screen_ai_sandbox_hook_linux.cc
@@ -53,6 +53,7 @@ bool ScreenAIPreSandboxHook(base::FilePath binary_path
     }
   }
 
+#if !BUILDFLAG(IS_BSD)
   auto* instance = sandbox::policy::SandboxLinux::GetInstance();
 
   std::vector<BrokerFilePermission> permissions{
@@ -75,6 +76,7 @@ bool ScreenAIPreSandboxHook(base::FilePath binary_path
                             sandbox::syscall_broker::COMMAND_OPEN}),
       permissions, options);
   instance->EngageNamespaceSandboxIfPossible();
+#endif
 
   return true;
 }