setexeccon is not needed
This commit is contained in:
parent
190d857949
commit
873f14bbe0
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));
|
||||||
|
Loading…
Reference in New Issue
Block a user