mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-21 22:48:07 +00:00
setexeccon is not needed
This commit is contained in:
1
su.c
1
su.c
@@ -121,7 +121,6 @@ static __attribute__ ((noreturn)) void allow() {
|
|||||||
umask(022);
|
umask(022);
|
||||||
populate_environment(su_ctx);
|
populate_environment(su_ctx);
|
||||||
set_identity(su_ctx->to.uid);
|
set_identity(su_ctx->to.uid);
|
||||||
setexeccon("u:r:su:s0");
|
|
||||||
|
|
||||||
execvp(su_ctx->to.shell, argv);
|
execvp(su_ctx->to.shell, argv);
|
||||||
fprintf(stderr, "Cannot execute %s: %s\n", su_ctx->to.shell, strerror(errno));
|
fprintf(stderr, "Cannot execute %s: %s\n", su_ctx->to.shell, strerror(errno));
|
||||||
|
Reference in New Issue
Block a user