2020-09-22 16:04:54 +02:00
|
|
|
From: meissner@suse.com, cgrobertson@suse.com
|
2020-03-25 10:43:20 +01:00
|
|
|
Subject: allow Firefox to access addtional process information
|
2020-09-22 16:04:54 +02:00
|
|
|
References:
|
|
|
|
http://bugzilla.suse.com/show_bug.cgi?id=1167132
|
|
|
|
bsc#1174284 - Firefox tab just crashed in FIPS mode
|
2020-03-25 10:43:20 +01:00
|
|
|
|
2021-10-21 08:51:24 +02:00
|
|
|
Index: firefox-93.0/security/sandbox/linux/Sandbox.cpp
|
|
|
|
===================================================================
|
|
|
|
--- firefox-93.0.orig/security/sandbox/linux/Sandbox.cpp
|
|
|
|
+++ firefox-93.0/security/sandbox/linux/Sandbox.cpp
|
|
|
|
@@ -655,6 +655,7 @@ void SetMediaPluginSandbox(const char* a
|
2020-09-22 16:04:54 +02:00
|
|
|
auto files = new SandboxOpenedFiles();
|
|
|
|
files->Add(std::move(plugin));
|
2021-10-06 09:02:07 +02:00
|
|
|
files->Add("/dev/urandom", SandboxOpenedFile::Dup::YES);
|
|
|
|
+ files->Add("/dev/random", SandboxOpenedFile::Dup::YES);
|
2020-09-22 16:04:54 +02:00
|
|
|
files->Add("/etc/ld.so.cache"); // Needed for NSS in clearkey.
|
|
|
|
files->Add("/sys/devices/system/cpu/cpu0/tsc_freq_khz");
|
|
|
|
files->Add("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq");
|
2021-10-21 08:51:24 +02:00
|
|
|
Index: firefox-93.0/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp
|
|
|
|
===================================================================
|
|
|
|
--- firefox-93.0.orig/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp
|
|
|
|
+++ firefox-93.0/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp
|
|
|
|
@@ -320,6 +320,8 @@ void SandboxBrokerPolicyFactory::InitCon
|
2020-03-25 10:12:06 +01:00
|
|
|
|
|
|
|
// Read permissions
|
|
|
|
policy->AddPath(rdonly, "/dev/urandom");
|
2020-09-22 16:04:54 +02:00
|
|
|
+ policy->AddPath(rdonly, "/dev/random");
|
2020-03-25 10:12:06 +01:00
|
|
|
+ policy->AddPath(rdonly, "/proc/sys/crypto/fips_enabled");
|
|
|
|
policy->AddPath(rdonly, "/proc/cpuinfo");
|
|
|
|
policy->AddPath(rdonly, "/proc/meminfo");
|
|
|
|
policy->AddDir(rdonly, "/sys/devices/cpu");
|
2021-10-21 08:51:24 +02:00
|
|
|
@@ -792,6 +794,8 @@ SandboxBrokerPolicyFactory::GetSocketPro
|
|
|
|
auto policy = MakeUnique<SandboxBroker::Policy>();
|
|
|
|
|
|
|
|
policy->AddPath(rdonly, "/dev/urandom");
|
|
|
|
+ policy->AddPath(rdonly, "/dev/random");
|
|
|
|
+ policy->AddPath(rdonly, "/proc/sys/crypto/fips_enabled");
|
|
|
|
policy->AddPath(rdonly, "/proc/cpuinfo");
|
|
|
|
policy->AddPath(rdonly, "/proc/meminfo");
|
|
|
|
policy->AddDir(rdonly, "/sys/devices/cpu");
|