e3ad888011
When cgroup directory is created its user and ownership gets set, however because previous code was storing getpwnam() return value the second invocation would effectively override the previous ones result. Fix this by copying necessary results. Also change getpwnam() to getgrnam() when group name is converted into gid. getpwnam() works because of the way Android uses these ids, however more generally this is incorrect and getgrnam() should be used instead. Bug: 111307099 Test: verified user/group membership of the cgroup directories Change-Id: I78668bc1a36a74f53d8e9825e2d06e3e09501e7a Signed-off-by: Suren Baghdasaryan <surenb@google.com> |
||
---|---|---|
.. | ||
include/processgroup | ||
Android.bp | ||
cgroup_map.cpp | ||
cgroup_map.h | ||
OWNERS | ||
processgroup.cpp | ||
sched_policy.cpp | ||
task_profiles.cpp | ||
task_profiles.h |