aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/selinux/hooks.c2
-rw-r--r--security/selinux/selinuxfs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index d50d7a782cf5..bb62838be496 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -1609,7 +1609,7 @@ static inline void flush_unauthorized_files(struct files_struct * files)
1609 1609
1610 if (tty) { 1610 if (tty) {
1611 file_list_lock(); 1611 file_list_lock();
1612 file = list_entry(tty->tty_files.next, typeof(*file), f_list); 1612 file = list_entry(tty->tty_files.next, typeof(*file), f_u.fu_list);
1613 if (file) { 1613 if (file) {
1614 /* Revalidate access to controlling tty. 1614 /* Revalidate access to controlling tty.
1615 Use inode_has_perm on the tty inode directly rather 1615 Use inode_has_perm on the tty inode directly rather
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c
index 7a387fec2a0c..fdc382389720 100644
--- a/security/selinux/selinuxfs.c
+++ b/security/selinux/selinuxfs.c
@@ -914,7 +914,7 @@ static void sel_remove_bools(struct dentry *de)
914 914
915 file_list_lock(); 915 file_list_lock();
916 list_for_each(p, &sb->s_files) { 916 list_for_each(p, &sb->s_files) {
917 struct file * filp = list_entry(p, struct file, f_list); 917 struct file * filp = list_entry(p, struct file, f_u.fu_list);
918 struct dentry * dentry = filp->f_dentry; 918 struct dentry * dentry = filp->f_dentry;
919 919
920 if (dentry->d_parent != de) { 920 if (dentry->d_parent != de) {