diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-02-10 04:46:25 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 14:18:06 -0500 |
commit | b385a144ee790f00e8559bcb8024d042863f9be1 (patch) | |
tree | c2f2df78805fe8eff006716cee7b8fa8010d3b62 /security/selinux/hooks.c | |
parent | 521dae191e5ba9362152da9fd3a12203e087df83 (diff) |
[PATCH] Replace regular code with appropriate calls to container_of()
Replace a small number of expressions with a call to the "container_of()"
macro.
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 2 |
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; |