diff options
Diffstat (limited to 'devel/electron23/files/patch-services_network_network__sandbox__hook__linux.cc')
-rw-r--r-- | devel/electron23/files/patch-services_network_network__sandbox__hook__linux.cc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/devel/electron23/files/patch-services_network_network__sandbox__hook__linux.cc b/devel/electron23/files/patch-services_network_network__sandbox__hook__linux.cc new file mode 100644 index 000000000000..8aec4c470be5 --- /dev/null +++ b/devel/electron23/files/patch-services_network_network__sandbox__hook__linux.cc @@ -0,0 +1,26 @@ +--- services/network/network_sandbox_hook_linux.cc.orig 2022-03-19 12:56:15 UTC ++++ services/network/network_sandbox_hook_linux.cc +@@ -26,12 +26,15 @@ sandbox::syscall_broker::BrokerCommandSet GetNetworkBr + }); + } + ++#if !defined(OS_BSD) + std::vector<BrokerFilePermission> GetNetworkFilePermissions() { + // TODO(tsepez): remove universal permission under filesystem root. + return {BrokerFilePermission::ReadWriteCreateRecursive("/")}; + } ++#endif + + bool NetworkPreSandboxHook(sandbox::policy::SandboxLinux::Options options) { ++#if !defined(OS_BSD) + auto* instance = sandbox::policy::SandboxLinux::GetInstance(); + + instance->StartBrokerProcess( +@@ -39,6 +42,7 @@ bool NetworkPreSandboxHook(sandbox::policy::SandboxLin + sandbox::policy::SandboxLinux::PreSandboxHook(), options); + + instance->EngageNamespaceSandboxIfPossible(); ++#endif + return true; + } + |