X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=security%2Fselinux%2Fhooks.c;h=ad8dd4e8657e5487bd7668328238c166248176da;hb=36f021b579d195cdc5fa6f3e2bab198b4bf70643;hp=885a9a958b8d6181db6e207f31ce1e927ab9bc83;hpb=2d56d3c43cc97ae48586745556f5a5b564d61582;p=linux-2.6-omap-h63xx.git diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 885a9a958b8..ad8dd4e8657 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -35,7 +35,6 @@ #include #include #include -#include #include #include #include @@ -1758,12 +1757,11 @@ static inline void flush_unauthorized_files(struct files_struct * files) } } file_list_unlock(); - - /* Reset controlling tty. */ - if (drop_tty) - proc_set_tty(current, NULL); } mutex_unlock(&tty_mutex); + /* Reset controlling tty. */ + if (drop_tty) + no_tty(); /* Revalidate access to inherited open files. */