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

Commit 9420c578 authored by Marco Ballesio's avatar Marco Ballesio Committed by Automerger Merge Worker
Browse files

libprocessgroup: adopt cgroup v2 freezer search path am: a7148f82 am: 3067ef3e

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0e947e6d0fa01a87f6a71e56cd2f9be1fc06f2fa
parents e75232e6 3067ef3e
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();