Skip to content
This repository has been archived by the owner on Jul 18, 2018. It is now read-only.

Commit

Permalink
Use xwrap functions
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Jul 13, 2018
1 parent 69b226b commit 0012943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions su.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0012943

Please sign in to comment.