crash_reporter: Join AID_READPROC group
Access to /proc files are limited to processes with group permissions for AID_READPROC, so add that group to the list of supplemental groups that the user_collector joins. Bug: 25598241 Change-Id: I26c77b052229346a3ac7150f38e03294f3641f96
This commit is contained in:
parent
bf666599b3
commit
a76ba85783
|
@ -90,9 +90,9 @@ void UserCollector::Initialize(
|
|||
directory_failure_ = directory_failure;
|
||||
filter_in_ = filter_in;
|
||||
|
||||
gid_t groups[] = { AID_ROOT, AID_SYSTEM, AID_DBUS };
|
||||
gid_t groups[] = { AID_ROOT, AID_SYSTEM, AID_DBUS, AID_READPROC };
|
||||
if (setgroups(arraysize(groups), groups) != 0) {
|
||||
PLOG(FATAL) << "Unable to set groups to root, system, and dbus";
|
||||
PLOG(FATAL) << "Unable to set groups to root, system, dbus, and readproc";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue