Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35641
b: refs/heads/master
c: b20c812
h: refs/heads/master
i:
  35639: ba0248c
v: v3
  • Loading branch information
Stephen Smalley authored and Linus Torvalds committed Sep 26, 2006
1 parent 0c2baf1 commit 00754f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bc7e982b84aceef0a040c88ff659eb5c83818f72
refs/heads/master: b20c8122a3204496fca8b5343c93b60fe11dad04
5 changes: 4 additions & 1 deletion trunk/security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1689,10 +1689,12 @@ static inline void flush_unauthorized_files(struct files_struct * files)
{
struct avc_audit_data ad;
struct file *file, *devnull = NULL;
struct tty_struct *tty = current->signal->tty;
struct tty_struct *tty;
struct fdtable *fdt;
long j = -1;

mutex_lock(&tty_mutex);
tty = current->signal->tty;
if (tty) {
file_list_lock();
file = list_entry(tty->tty_files.next, typeof(*file), f_u.fu_list);
Expand All @@ -1712,6 +1714,7 @@ static inline void flush_unauthorized_files(struct files_struct * files)
}
file_list_unlock();
}
mutex_unlock(&tty_mutex);

/* Revalidate access to inherited open files. */

Expand Down

0 comments on commit 00754f5

Please sign in to comment.