mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 09:47:40 +00:00
Let isolation namespace base on app namespace
This commit is contained in:
parent
fee4031d0f
commit
e458215f27
@ -293,6 +293,7 @@ void su_daemon_handler(int client, struct ucred *credential) {
|
||||
break;
|
||||
case NAMESPACE_MODE_ISOLATE:
|
||||
LOGD("su: use new isolated namespace\n");
|
||||
switch_mnt_ns(ctx.pid);
|
||||
xunshare(CLONE_NEWNS);
|
||||
xmount(nullptr, "/", nullptr, MS_PRIVATE | MS_REC, nullptr);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user