aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-third__party_crashpad_crashpad_util_posix_drop__privileges.cc
blob: 42ba7366e3cbb9d665b2bc31569f51074182a4a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- third_party/crashpad/crashpad/util/posix/drop_privileges.cc.orig	2019-03-11 22:01:15 UTC
+++ third_party/crashpad/crashpad/util/posix/drop_privileges.cc
@@ -23,7 +23,7 @@ void DropPrivileges() {
   gid_t gid = getgid();
   uid_t uid = getuid();
 
-#if defined(OS_MACOSX)
+#if defined(OS_MACOSX) || defined(OS_BSD)
   // Based on the POSIX.1-2008 2013 edition documentation for setreuid() and
   // setregid(), setreuid() and setregid() alone should be sufficient to drop
   // privileges. The standard specifies that the saved ID should be set to the