From: Todd C. Miller Date: Wed, 20 Feb 2008 17:00:40 +0000 (+0000) Subject: Don't free the new tty context, we need to keep it around when we restore the tty... X-Git-Tag: SUDO_1_7_0~178 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a347284ea0c1f576eb8896f9305d42500fdb6b8;p=sudo Don't free the new tty context, we need to keep it around when we restore the tty context after the command completes --- diff --git a/selinux.c b/selinux.c index e225efffc..202e233e3 100644 --- a/selinux.c +++ b/selinux.c @@ -146,8 +146,6 @@ relabel_tty(const char *ttyn, security_context_t new_context, if (enforcing) goto error; } - freecon(new_tty_con); - new_tty_con = NULL; } *tty_context = tty_con;