projects
/
sudo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3612805
)
Don't free the new tty context, we need to keep it around when we restore the tty...
author
Todd C. Miller
<Todd.Miller@courtesan.com>
Wed, 20 Feb 2008 17:00:40 +0000
(17:00 +0000)
committer
Todd C. Miller
<Todd.Miller@courtesan.com>
Wed, 20 Feb 2008 17:00:40 +0000
(17:00 +0000)
selinux.c
patch
|
blob
|
history
diff --git
a/selinux.c
b/selinux.c
index e225efffc0cdc6706948d0131c9b32a0174b2518..202e233e33fc20da0de1a6cb331ce8e92c6d8adf 100644
(file)
--- 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;