diff options
author | Todd C. Miller <Todd.Miller@courtesan.com> | 2008-02-20 17:00:40 +0000 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@courtesan.com> | 2008-02-20 17:00:40 +0000 |
commit | dc7aa7b090c1a46fb1ddb605abeb590f55b105f0 (patch) | |
tree | ca5ffe09ff886f98d1ca25c470418b0f6bbdb982 /selinux.c | |
parent | 71a098efb8f53bd1af57977f496cb98458f1b63d (diff) | |
download | sudo-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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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; |