aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r--security/selinux/hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 9eeab82719a2..35eb8de892fc 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -2654,7 +2654,7 @@ static int selinux_file_send_sigiotask(struct task_struct *tsk,
2654 struct file_security_struct *fsec; 2654 struct file_security_struct *fsec;
2655 2655
2656 /* struct fown_struct is never outside the context of a struct file */ 2656 /* struct fown_struct is never outside the context of a struct file */
2657 file = (struct file *)((long)fown - offsetof(struct file,f_owner)); 2657 file = container_of(fown, struct file, f_owner);
2658 2658
2659 tsec = tsk->security; 2659 tsec = tsk->security;
2660 fsec = file->f_security; 2660 fsec = file->f_security;