summaryrefslogtreecommitdiff
path: root/selinux.c
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@courtesan.com>2008-02-20 17:00:40 +0000
committerTodd C. Miller <Todd.Miller@courtesan.com>2008-02-20 17:00:40 +0000
commitdc7aa7b090c1a46fb1ddb605abeb590f55b105f0 (patch)
treeca5ffe09ff886f98d1ca25c470418b0f6bbdb982 /selinux.c
parent71a098efb8f53bd1af57977f496cb98458f1b63d (diff)
downloadsudo-dc7aa7b090c1a46fb1ddb605abeb590f55b105f0.tar.gz
Don't free the new tty context, we need to keep it around when we restore the tty context after the command completes
Diffstat (limited to 'selinux.c')
-rw-r--r--selinux.c2
1 files changed, 0 insertions, 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;