summaryrefslogtreecommitdiff
path: root/waterfox/waterfox-remove-SetCurrentProcessPrivileges.patch
blob: ed096fb153fe1013f5fa58f33ceb1decb5763c87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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