mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Permit filesystem group to be root
This commit is contained in:
committed by
Nick Mathewson
parent
d68b7fd442
commit
08c7ceb5df
+1
-1
@@ -2143,7 +2143,7 @@ check_private_dir(const char *dirname, cpd_check_t check,
|
||||
return -1;
|
||||
}
|
||||
if ( (check & (CPD_GROUP_OK|CPD_GROUP_READ))
|
||||
&& (st.st_gid != running_gid) ) {
|
||||
&& (st.st_gid != running_gid) && (st.st_gid != 0)) {
|
||||
struct group *gr;
|
||||
char *process_groupname = NULL;
|
||||
gr = getgrgid(running_gid);
|
||||
|
||||
Reference in New Issue
Block a user