setexeccon is not needed

This commit is contained in:
topjohnwu 2018-04-15 03:15:29 +08:00
parent 190d857949
commit 873f14bbe0

1
su.c
View File

@ -121,7 +121,6 @@ static __attribute__ ((noreturn)) void allow() {
umask(022);
populate_environment(su_ctx);
set_identity(su_ctx->to.uid);
setexeccon("u:r:su:s0");
execvp(su_ctx->to.shell, argv);
fprintf(stderr, "Cannot execute %s: %s\n", su_ctx->to.shell, strerror(errno));