From 1a347284ea0c1f576eb8896f9305d42500fdb6b8 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 20 Feb 2008 17:00:40 +0000 Subject: [PATCH] Don't free the new tty context, we need to keep it around when we restore the tty context after the command completes --- selinux.c | 2 -- 1 file changed, 2 deletions(-) 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; -- 2.40.0