| Server IP : 82.208.35.60 / Your IP : 216.73.216.238 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/devel/electron19/files/ |
Upload File : |
--- services/network/network_sandbox_hook_linux.cc.orig 2022-05-19 03:45:39 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;
}