libprocessgroup: adopt cgroup v2 freezer search path
With the new uid/pid hierarchy the search path looks into uid_0, which is always present. Bug: 168907513 Test: verified that the cgroup v2 hierarchy works correctly in normal mode Test: verified that the cgroup v2 hierarchy works correctly in recovery mode Change-Id: If33594e4891128148da64bed47e68fa74667013d
This commit is contained in:
parent
4dac81680f
commit
a7148f82a1
|
@ -36,7 +36,8 @@ bool SetProcessProfiles(uid_t uid, pid_t pid, const std::vector<std::string>& pr
|
|||
|
||||
static constexpr const char* CGROUPS_RC_PATH = "/dev/cgroup_info/cgroup.rc";
|
||||
// Path to test against for freezer support
|
||||
static constexpr const char* CGROUP_FREEZE_PATH = "/sys/fs/cgroup/freezer/cgroup.freeze";
|
||||
// TODO: remove and replace with a function call, see http://b/180056337
|
||||
static constexpr const char* CGROUP_FREEZE_PATH = "/sys/fs/cgroup/uid_0/cgroup.freeze";
|
||||
|
||||
bool UsePerAppMemcg();
|
||||
|
||||
|
|
Loading…
Reference in New Issue