Commit 873f14bb authored by topjohnwu's avatar topjohnwu

setexeccon is not needed

parent 190d8579
...@@ -121,7 +121,6 @@ static __attribute__ ((noreturn)) void allow() { ...@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment