diff options
author | Rene Ladan <rene@FreeBSD.org> | 2022-09-30 20:27:51 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2022-09-30 20:28:38 +0000 |
commit | 5dd7c81df6eeb00025f5948c1e47209579e43899 (patch) | |
tree | 1a5af8502fdace053a54af8ae0d7aaf9499dfb04 /devel/electron17/files/patch-content_gpu_gpu__sandbox__hook__linux.cc | |
parent | 271cfa313d3c646c8ef33ad47ad891b002a49d49 (diff) | |
download | ports-5dd7c81df6eeb00025f5948c1e47209579e43899.tar.gz ports-5dd7c81df6eeb00025f5948c1e47209579e43899.zip |
devel/electron17: remove expired port (2022-09-30)
rmport chokes on this port.
Diffstat (limited to 'devel/electron17/files/patch-content_gpu_gpu__sandbox__hook__linux.cc')
-rw-r--r-- | devel/electron17/files/patch-content_gpu_gpu__sandbox__hook__linux.cc | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/devel/electron17/files/patch-content_gpu_gpu__sandbox__hook__linux.cc b/devel/electron17/files/patch-content_gpu_gpu__sandbox__hook__linux.cc deleted file mode 100644 index 3718dfac6592..000000000000 --- a/devel/electron17/files/patch-content_gpu_gpu__sandbox__hook__linux.cc +++ /dev/null @@ -1,70 +0,0 @@ ---- content/gpu/gpu_sandbox_hook_linux.cc.orig 2022-05-11 07:16:51 UTC -+++ content/gpu/gpu_sandbox_hook_linux.cc -@@ -101,6 +101,7 @@ static const char kLibV4lEncPluginPath[] = - - constexpr int dlopen_flag = RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE; - -+#if !defined(OS_BSD) - void AddV4L2GpuPermissions( - std::vector<BrokerFilePermission>* permissions, - const sandbox::policy::SandboxSeccompBPF::Options& options) { -@@ -395,8 +396,10 @@ std::vector<BrokerFilePermission> FilePermissionsForGp - AddStandardGpuPermissions(&permissions); - return permissions; - } -+#endif - - void LoadArmGpuLibraries() { -+#if !defined(OS_BSD) - // Preload the Mali library. - if (UseChromecastSandboxAllowlist()) { - for (const char* path : kAllowedChromecastPaths) { -@@ -438,6 +441,7 @@ void LoadArmGpuLibraries() { - dlopen(driver_paths[i], dlopen_flag); - } - } -+#endif - } - - bool LoadAmdGpuLibraries() { -@@ -501,12 +505,14 @@ void LoadV4L2Libraries( - } - - void LoadChromecastV4L2Libraries() { -+#if !defined(OS_BSD) - for (const char* path : kAllowedChromecastPaths) { - const std::string library_path(std::string(path) + - std::string("libvpcodec.so")); - if (dlopen(library_path.c_str(), dlopen_flag)) - break; - } -+#endif - } - - bool LoadLibrariesForGpu( -@@ -533,6 +539,7 @@ bool LoadLibrariesForGpu( - return true; - } - -+#if !defined(OS_BSD) - sandbox::syscall_broker::BrokerCommandSet CommandSetForGPU( - const sandbox::policy::SandboxLinux::Options& options) { - sandbox::syscall_broker::BrokerCommandSet command_set; -@@ -555,13 +562,17 @@ bool BrokerProcessPreSandboxHook( - SetProcessTitleFromCommandLine(nullptr); - return true; - } -+#endif - - } // namespace - - bool GpuProcessPreSandboxHook(sandbox::policy::SandboxLinux::Options options) { -+ NOTIMPLEMENTED(); -+#if !defined(OS_BSD) - sandbox::policy::SandboxLinux::GetInstance()->StartBrokerProcess( - CommandSetForGPU(options), FilePermissionsForGpu(options), - base::BindOnce(BrokerProcessPreSandboxHook), options); -+#endif - - if (!LoadLibrariesForGpu(options)) - return false; |