public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/chromium] epel9-next: Refreshed flatpak patches
@ 2026-08-07 16:07 Than Ngo
0 siblings, 0 replies; only message in thread
From: Than Ngo @ 2026-08-07 16:07 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/chromium
Branch : epel9-next
Commit : 051dbef9c1c467703f0c16240b04afad37fa7e44
Author : Than Ngo <than@redhat.com>
Date : 2025-04-12T13:17:37+02:00
Stats : +41/-41 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/chromium/c/051dbef9c1c467703f0c16240b04afad37fa7e44?branch=epel9-next
Log:
Refreshed flatpak patches
---
diff --git a/flatpak-Add-initial-sandbox-support.patch b/flatpak-Add-initial-sandbox-support.patch
index 73f39b1..3551ae3 100644
--- a/flatpak-Add-initial-sandbox-support.patch
+++ b/flatpak-Add-initial-sandbox-support.patch
@@ -1,4 +1,4 @@
-From e29f4b52c8770033504794b934bc14b1d7261ef1 Mon Sep 17 00:00:00 2001
+From 1915558377f7dc194ff2238c79b70ceacd88f474 Mon Sep 17 00:00:00 2001
From: Ryan Gonzalez <rymg19@gmail.com>
Date: Tue, 17 Mar 2020 13:18:27 -0500
Subject: [PATCH] flatpak: Add initial sandbox support
@@ -30,7 +30,7 @@ Subject: [PATCH] flatpak: Add initial sandbox support
create mode 100644 sandbox/linux/services/flatpak_sandbox.h
diff --git a/.gitignore b/.gitignore
-index 9056030523807..2c13d0ad5f1c7 100644
+index 375db3d02ce28..1eee661c2bed4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -75,6 +75,7 @@ vs-chromium-project.txt
@@ -42,10 +42,10 @@ index 9056030523807..2c13d0ad5f1c7 100644
/.externalToolBuilders/
/.settings/
diff --git a/base/threading/thread_restrictions.h b/base/threading/thread_restrictions.h
-index e029700325e79..14ef172d37087 100644
+index 56ddbc2d4fa33..736a06ab1d673 100644
--- a/base/threading/thread_restrictions.h
+++ b/base/threading/thread_restrictions.h
-@@ -409,6 +409,9 @@ class ScopedAllowThreadJoinForWebRtcTransport;
+@@ -405,6 +405,9 @@ class ScopedAllowThreadJoinForWebRtcTransport;
namespace rlz_lib {
class FinancialPing;
}
@@ -55,7 +55,7 @@ index e029700325e79..14ef172d37087 100644
namespace service_manager {
class ServiceProcessLauncher;
}
-@@ -646,6 +649,7 @@ class BASE_EXPORT ScopedAllowBlocking {
+@@ -641,6 +644,7 @@ class BASE_EXPORT ScopedAllowBlocking {
friend class remoting::
ScopedBypassIOThreadRestrictions; // http://crbug.com/1144161
friend class remoting::ScopedAllowBlockingForCrashReporting;
@@ -63,7 +63,7 @@ index e029700325e79..14ef172d37087 100644
friend class ui::DrmDisplayHostManager;
friend class ui::ScopedAllowBlockingForGbmSurface;
friend class ui::SelectFileDialogLinux;
-@@ -788,6 +792,7 @@ class BASE_EXPORT ScopedAllowBaseSyncPrimitives {
+@@ -783,6 +787,7 @@ class BASE_EXPORT ScopedAllowBaseSyncPrimitives {
friend class rlz_lib::FinancialPing;
friend class shell_integration_linux::
LaunchXdgUtilityScopedAllowBaseSyncPrimitives;
@@ -151,10 +151,10 @@ index 583a386414590..c1cf93992da5b 100644
}
#endif
diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc
-index bd1013ccdd503..00f6ff8e13af5 100644
+index e84c86a30d504..595a469c765a6 100644
--- a/content/browser/zygote_host/zygote_host_impl_linux.cc
+++ b/content/browser/zygote_host/zygote_host_impl_linux.cc
-@@ -12,6 +12,7 @@
+@@ -17,6 +17,7 @@
#include "base/logging.h"
#include "base/posix/unix_domain_socket.h"
#include "base/process/kill.h"
@@ -162,7 +162,7 @@ index bd1013ccdd503..00f6ff8e13af5 100644
#include "base/process/memory.h"
#include "base/strings/string_number_conversions.h"
#include "base/types/fixed_array.h"
-@@ -21,6 +22,7 @@
+@@ -26,6 +27,7 @@
#include "content/common/zygote/zygote_handle_impl_linux.h"
#include "content/public/common/zygote/zygote_handle.h"
#include "sandbox/linux/services/credentials.h"
@@ -170,7 +170,7 @@ index bd1013ccdd503..00f6ff8e13af5 100644
#include "sandbox/linux/services/namespace_sandbox.h"
#include "sandbox/linux/suid/client/setuid_sandbox_host.h"
#include "sandbox/linux/suid/common/sandbox.h"
-@@ -71,6 +73,7 @@ ZygoteHostImpl::ZygoteHostImpl()
+@@ -76,6 +78,7 @@ ZygoteHostImpl::ZygoteHostImpl()
: use_namespace_sandbox_(false),
use_suid_sandbox_(false),
use_suid_sandbox_for_adj_oom_score_(false),
@@ -178,7 +178,7 @@ index bd1013ccdd503..00f6ff8e13af5 100644
sandbox_binary_(),
zygote_pids_lock_(),
zygote_pids_() {}
-@@ -109,9 +112,12 @@ void ZygoteHostImpl::Init(const base::CommandLine& command_line) {
+@@ -114,9 +117,12 @@ void ZygoteHostImpl::Init(const base::CommandLine& command_line) {
sandbox_binary_ = setuid_sandbox_host->GetSandboxBinaryPath().value();
}
@@ -194,7 +194,7 @@ index bd1013ccdd503..00f6ff8e13af5 100644
use_namespace_sandbox_ = true;
} else if (!command_line.HasSwitch(
sandbox::policy::switches::kDisableSetuidSandbox) &&
-@@ -182,10 +188,16 @@ pid_t ZygoteHostImpl::LaunchZygote(
+@@ -187,10 +193,16 @@ pid_t ZygoteHostImpl::LaunchZygote(
sandbox_host->SetupLaunchEnvironment();
}
@@ -215,7 +215,7 @@ index bd1013ccdd503..00f6ff8e13af5 100644
CHECK(process.IsValid()) << "Failed to launch zygote process";
dummy_fd.reset();
-@@ -194,7 +206,8 @@ pid_t ZygoteHostImpl::LaunchZygote(
+@@ -199,7 +211,8 @@ pid_t ZygoteHostImpl::LaunchZygote(
pid_t pid = process.Pid();
@@ -225,7 +225,7 @@ index bd1013ccdd503..00f6ff8e13af5 100644
// The namespace and SUID sandbox will execute the zygote in a new
// PID namespace, and the main zygote process will then fork from
// there. Watch now our elaborate dance to find and validate the
-@@ -222,7 +235,11 @@ pid_t ZygoteHostImpl::LaunchZygote(
+@@ -227,7 +240,11 @@ pid_t ZygoteHostImpl::LaunchZygote(
if (real_pid != pid) {
// Reap the sandbox.
@@ -238,7 +238,7 @@ index bd1013ccdd503..00f6ff8e13af5 100644
}
pid = real_pid;
}
-@@ -273,6 +290,10 @@ void ZygoteHostImpl::AdjustRendererOOMScore(base::ProcessHandle pid,
+@@ -278,6 +295,10 @@ void ZygoteHostImpl::AdjustRendererOOMScore(base::ProcessHandle pid,
selinux_valid = true;
}
@@ -362,10 +362,10 @@ index c7ee91878e6dd..9c2c7a04bd968 100644
base::GlobalDescriptors::Descriptor(
static_cast<uint32_t>(kSandboxIPCChannel), GetSandboxFD()));
diff --git a/sandbox/linux/BUILD.gn b/sandbox/linux/BUILD.gn
-index 97e3deed4f2b9..61916ed9805d3 100644
+index 4eac178764a41..8bd0de35f246f 100644
--- a/sandbox/linux/BUILD.gn
+++ b/sandbox/linux/BUILD.gn
-@@ -311,6 +311,10 @@ if (is_linux || is_chromeos) {
+@@ -309,6 +309,10 @@ if (is_linux || is_chromeos) {
component("sandbox_services") {
sources = [
@@ -376,7 +376,7 @@ index 97e3deed4f2b9..61916ed9805d3 100644
"services/init_process_reaper.cc",
"services/init_process_reaper.h",
"services/proc_util.cc",
-@@ -329,8 +333,10 @@ component("sandbox_services") {
+@@ -327,8 +331,10 @@ component("sandbox_services") {
defines = [ "SANDBOX_IMPLEMENTATION" ]
@@ -506,7 +506,7 @@ index 0000000000000..22799eb42f782
+#endif
diff --git a/sandbox/linux/services/flatpak_sandbox.cc b/sandbox/linux/services/flatpak_sandbox.cc
new file mode 100644
-index 0000000000000..31229fdf59127
+index 0000000000000..b5da5a5801fde
--- /dev/null
+++ b/sandbox/linux/services/flatpak_sandbox.cc
@@ -0,0 +1,576 @@
@@ -1015,7 +1015,7 @@ index 0000000000000..31229fdf59127
+ writer.CloseContainer(&options_writer);
+
+ object_proxy->CallMethodWithErrorResponse(
-+ &method_call, dbus::ObjectProxy::TIMEOUT_INFINITE,
++ &method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT,
+ base::BindOnce(&FlatpakSandbox::OnSpawnResponse, base::Unretained(this),
+ base::Unretained(out_external_pid),
+ base::Unretained(event)));
@@ -1211,24 +1211,24 @@ index 0000000000000..167bbc85945ad
+
+#endif // SANDBOX_LINUX_SERVICES_FLATPAK_SANDBOX_H_
diff --git a/sandbox/policy/BUILD.gn b/sandbox/policy/BUILD.gn
-index 6767e25821a9a..521c089a5f3df 100644
+index 793c68d50e59f..b44c986fd72ab 100644
--- a/sandbox/policy/BUILD.gn
+++ b/sandbox/policy/BUILD.gn
-@@ -116,6 +116,9 @@ component("policy") {
+@@ -114,6 +114,9 @@ component("policy") {
"//sandbox/linux:suid_sandbox_client",
]
}
+ if (is_linux) {
+ public_deps += [ "//sandbox/linux:sandbox_services" ]
+ }
- if (is_chromeos_ash) {
+ if (is_chromeos) {
sources += [
"linux/bpf_ime_policy_linux.cc",
diff --git a/sandbox/policy/linux/sandbox_linux.cc b/sandbox/policy/linux/sandbox_linux.cc
-index 6249a61685332..a3ae93f9f4191 100644
+index 427604b2b8a00..7384c01cc9123 100644
--- a/sandbox/policy/linux/sandbox_linux.cc
+++ b/sandbox/policy/linux/sandbox_linux.cc
-@@ -37,6 +37,7 @@
+@@ -36,6 +36,7 @@
#include "sandbox/constants.h"
#include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h"
#include "sandbox/linux/services/credentials.h"
@@ -1236,7 +1236,7 @@ index 6249a61685332..a3ae93f9f4191 100644
#include "sandbox/linux/services/libc_interceptor.h"
#include "sandbox/linux/services/namespace_sandbox.h"
#include "sandbox/linux/services/proc_util.h"
-@@ -232,6 +233,9 @@ void SandboxLinux::PreinitializeSandbox() {
+@@ -231,6 +232,9 @@ void SandboxLinux::PreinitializeSandbox() {
const int yama_status = Yama::GetStatus();
yama_is_enforcing_ = (yama_status & Yama::STATUS_PRESENT) &&
(yama_status & Yama::STATUS_ENFORCING);
@@ -1246,7 +1246,7 @@ index 6249a61685332..a3ae93f9f4191 100644
pre_initialized_ = true;
}
-@@ -270,6 +274,10 @@ int SandboxLinux::GetStatus() {
+@@ -269,6 +273,10 @@ int SandboxLinux::GetStatus() {
sandbox_status_flags_ |= kPIDNS;
if (NamespaceSandbox::InNewNetNamespace())
sandbox_status_flags_ |= kNetNS;
diff --git a/flatpak-Adjust-paths-for-the-sandbox.patch b/flatpak-Adjust-paths-for-the-sandbox.patch
index 17c6bcd..c396242 100644
--- a/flatpak-Adjust-paths-for-the-sandbox.patch
+++ b/flatpak-Adjust-paths-for-the-sandbox.patch
@@ -1,4 +1,4 @@
-From bf5f40f06d453e0128a9289d2df48d82822f8646 Mon Sep 17 00:00:00 2001
+From e7fd5c3a43aed07cf0a1561c408b631090be8374 Mon Sep 17 00:00:00 2001
From: Ryan Gonzalez <rymg19@gmail.com>
Date: Tue, 25 Aug 2020 19:26:07 -0500
Subject: [PATCH] flatpak: Adjust paths for the sandbox
@@ -9,10 +9,10 @@ Subject: [PATCH] flatpak: Adjust paths for the sandbox
2 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/chrome/common/BUILD.gn b/chrome/common/BUILD.gn
-index b7338a65d9a68..b13c79e33c3f6 100644
+index 40e1d1c431dd0..e4a19c80e1afc 100644
--- a/chrome/common/BUILD.gn
+++ b/chrome/common/BUILD.gn
-@@ -633,6 +633,10 @@ static_library("constants") {
+@@ -621,6 +621,10 @@ static_library("constants") {
"//third_party/widevine/cdm:headers",
]
}
@@ -24,7 +24,7 @@ index b7338a65d9a68..b13c79e33c3f6 100644
# Use a static library here because many test binaries depend on this but don't
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
-index afc13e1b56f78..d707b71ba03ac 100644
+index 6476c59ba6378..9f1b950b14adc 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -38,6 +38,10 @@
@@ -38,7 +38,7 @@ index afc13e1b56f78..d707b71ba03ac 100644
#if BUILDFLAG(ENABLE_WIDEVINE)
#include "third_party/widevine/cdm/widevine_cdm_common.h" // nogncheck
#endif
-@@ -529,6 +533,14 @@ bool PathProvider(int key, base::FilePath* result) {
+@@ -502,6 +506,14 @@ bool PathProvider(int key, base::FilePath* result) {
#endif
#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_OPENBSD)
case chrome::DIR_POLICY_FILES: {
@@ -53,7 +53,7 @@ index afc13e1b56f78..d707b71ba03ac 100644
cur = base::FilePath(policy::kPolicyPath);
break;
}
-@@ -549,7 +561,13 @@ bool PathProvider(int key, base::FilePath* result) {
+@@ -518,7 +530,13 @@ bool PathProvider(int key, base::FilePath* result) {
#endif
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
case chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS: {
@@ -68,7 +68,7 @@ index afc13e1b56f78..d707b71ba03ac 100644
break;
}
#endif
-@@ -596,6 +614,12 @@ bool PathProvider(int key, base::FilePath* result) {
+@@ -565,6 +583,12 @@ bool PathProvider(int key, base::FilePath* result) {
"/Library/Application Support/Chromium/NativeMessagingHosts"));
#endif
#else // BUILDFLAG(IS_MAC)
diff --git a/flatpak-Expose-Widevine-into-the-sandbox.patch b/flatpak-Expose-Widevine-into-the-sandbox.patch
index fc2eaf3..1e9bafa 100644
--- a/flatpak-Expose-Widevine-into-the-sandbox.patch
+++ b/flatpak-Expose-Widevine-into-the-sandbox.patch
@@ -1,4 +1,4 @@
-From 266e6fc37326e45402f826b282b0e0c461614905 Mon Sep 17 00:00:00 2001
+From c5330fa947e1db2db4055994e0da993620f2b5ef Mon Sep 17 00:00:00 2001
From: Ryan Gonzalez <rymg19@gmail.com>
Date: Tue, 17 Nov 2020 13:00:39 -0600
Subject: [PATCH] flatpak: Expose Widevine into the sandbox
@@ -10,10 +10,10 @@ Subject: [PATCH] flatpak: Expose Widevine into the sandbox
3 files changed, 131 insertions(+), 24 deletions(-)
diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc
-index 00f6ff8e13af5..cf3019e26bbf2 100644
+index 595a469c765a6..56cbbb33addde 100644
--- a/content/browser/zygote_host/zygote_host_impl_linux.cc
+++ b/content/browser/zygote_host/zygote_host_impl_linux.cc
-@@ -9,7 +9,10 @@
+@@ -14,7 +14,10 @@
#include <sys/types.h>
#include "base/files/file_enumerator.h"
@@ -24,7 +24,7 @@ index 00f6ff8e13af5..cf3019e26bbf2 100644
#include "base/posix/unix_domain_socket.h"
#include "base/process/kill.h"
#include "base/process/launch.h"
-@@ -17,9 +20,12 @@
+@@ -22,9 +25,12 @@
#include "base/strings/string_number_conversions.h"
#include "base/types/fixed_array.h"
#include "build/build_config.h"
@@ -37,7 +37,7 @@ index 00f6ff8e13af5..cf3019e26bbf2 100644
#include "content/public/common/zygote/zygote_handle.h"
#include "sandbox/linux/services/credentials.h"
#include "sandbox/linux/services/flatpak_sandbox.h"
-@@ -28,6 +34,7 @@
+@@ -33,6 +39,7 @@
#include "sandbox/linux/suid/common/sandbox.h"
#include "sandbox/policy/linux/sandbox_linux.h"
#include "sandbox/policy/switches.h"
@@ -45,7 +45,7 @@ index 00f6ff8e13af5..cf3019e26bbf2 100644
#if BUILDFLAG(IS_CHROMEOS)
#include "content/common/zygote/zygote_communication_linux.h"
-@@ -192,8 +199,51 @@ pid_t ZygoteHostImpl::LaunchZygote(
+@@ -197,8 +204,51 @@ pid_t ZygoteHostImpl::LaunchZygote(
if (is_sandboxed_zygote && use_namespace_sandbox_) {
process = sandbox::NamespaceSandbox::LaunchProcess(*cmd_line, options);
} else if (is_sandboxed_zygote && use_flatpak_sandbox_) {
@@ -100,7 +100,7 @@ index 00f6ff8e13af5..cf3019e26bbf2 100644
process = base::LaunchProcess(*cmd_line, options);
}
diff --git a/sandbox/linux/services/flatpak_sandbox.cc b/sandbox/linux/services/flatpak_sandbox.cc
-index 31229fdf59127..cabda783879e6 100644
+index b5da5a5801fde..7c9205e7bf602 100644
--- a/sandbox/linux/services/flatpak_sandbox.cc
+++ b/sandbox/linux/services/flatpak_sandbox.cc
@@ -4,6 +4,7 @@
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-07 16:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07 16:07 [rpms/chromium] epel9-next: Refreshed flatpak patches Than Ngo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox