From 6ccc5f3788915e7acd2495f20f85e90a1fa30252 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 13 Jul 2018 22:10:24 +0800 Subject: [PATCH] Use xwrap functions --- su.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/su.c b/su.c index 602c6b72d..569694223 100644 --- a/su.c +++ b/su.c @@ -235,12 +235,12 @@ int su_daemon_main(int argc, char **argv) { LOGD("su: use namespace of pid=[%d]\n", su_ctx->pid); if (switch_mnt_ns(su_ctx->pid)) { LOGD("su: setns failed, fallback to isolated\n"); - unshare(CLONE_NEWNS); + xunshare(CLONE_NEWNS); } break; case NAMESPACE_MODE_ISOLATE: LOGD("su: use new isolated namespace\n"); - unshare(CLONE_NEWNS); + xunshare(CLONE_NEWNS); break; }