summaryrefslogtreecommitdiff
path: root/waterfox/waterfox-remove-SetCurrentProcessPrivileges.patch
diff options
context:
space:
mode:
Diffstat (limited to 'waterfox/waterfox-remove-SetCurrentProcessPrivileges.patch')
-rw-r--r--waterfox/waterfox-remove-SetCurrentProcessPrivileges.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/waterfox/waterfox-remove-SetCurrentProcessPrivileges.patch b/waterfox/waterfox-remove-SetCurrentProcessPrivileges.patch
new file mode 100644
index 0000000..ed096fb
--- /dev/null
+++ b/waterfox/waterfox-remove-SetCurrentProcessPrivileges.patch
@@ -0,0 +1,25 @@
+From ddb9e372a2f3ac7b37b1c58a427351333b0545fe Mon Sep 17 00:00:00 2001
+From: Phantom X <PhantomX@users.noreply.github.com>
+Date: Mon, 19 Aug 2019 21:53:21 -0300
+Subject: [PATCH] Remove unneeded SetCurrentProcessPrivileges
+
+---
+ ipc/chromium/src/base/process_util_linux.cc | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/ipc/chromium/src/base/process_util_linux.cc b/ipc/chromium/src/base/process_util_linux.cc
+index f8cfb32..5501747 100644
+--- a/ipc/chromium/src/base/process_util_linux.cc
++++ b/ipc/chromium/src/base/process_util_linux.cc
+@@ -169,8 +169,6 @@ bool LaunchApp(const std::vector<std::string>& argv,
+ argv_cstr[i] = const_cast<char*>(argv[i].c_str());
+ argv_cstr[argv.size()] = NULL;
+
+- SetCurrentProcessPrivileges(privs);
+-
+ execve(argv_cstr[0], argv_cstr.get(), envp);
+ // if we get here, we're in serious trouble and should complain loudly
+ // NOTE: This is async signal unsafe; it could deadlock instead. (But
+--
+2.21.0
+
bgstack15