diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 885a9a958b8d..fa9dbb6b110d 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -1758,12 +1758,11 @@ static inline void flush_unauthorized_files(struct files_struct * files) | |||
1758 | } | 1758 | } |
1759 | } | 1759 | } |
1760 | file_list_unlock(); | 1760 | file_list_unlock(); |
1761 | |||
1762 | /* Reset controlling tty. */ | ||
1763 | if (drop_tty) | ||
1764 | proc_set_tty(current, NULL); | ||
1765 | } | 1761 | } |
1766 | mutex_unlock(&tty_mutex); | 1762 | mutex_unlock(&tty_mutex); |
1763 | /* Reset controlling tty. */ | ||
1764 | if (drop_tty) | ||
1765 | no_tty(); | ||
1767 | 1766 | ||
1768 | /* Revalidate access to inherited open files. */ | 1767 | /* Revalidate access to inherited open files. */ |
1769 | 1768 | ||