Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3067ef3e authored by Marco Ballesio's avatar Marco Ballesio Committed by Automerger Merge Worker
Browse files

libprocessgroup: adopt cgroup v2 freezer search path am: a7148f82

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1585102

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0b9b318b710c5ab3f53e08489c3df8dcfc2cd663
parents b33b95f6 a7148f82
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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();