mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-24 13:01:20 +00:00
Add an old cgroup path
Fix topjohnwu#5125
cgroup root path might be mem cgroup instead of acct, especially on low-ram devices.
bc131c3244
%5E%21/#F0
This commit is contained in:
parent
31fe3a1cd8
commit
880b348ce6
@ -305,6 +305,7 @@ static void daemon_entry() {
|
||||
// Escape from cgroup
|
||||
int pid = getpid();
|
||||
switch_cgroup("/acct", pid);
|
||||
switch_cgroup("/dev/memcg/apps", pid);
|
||||
switch_cgroup("/dev/cg2_bpf", pid);
|
||||
switch_cgroup("/sys/fs/cgroup", pid);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user