aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorRobert P. J. Day <[email protected]>2007-02-10 09:46:25 +0000
committerLinus Torvalds <[email protected]>2007-02-11 19:18:06 +0000
commitb385a144ee790f00e8559bcb8024d042863f9be1 (patch)
treec2f2df78805fe8eff006716cee7b8fa8010d3b62 /security/selinux/hooks.c
parent[PATCH] cleanup include/linux/reiserfs_xattr.h (diff)
downloadkernel-b385a144ee790f00e8559bcb8024d042863f9be1.tar.gz
kernel-b385a144ee790f00e8559bcb8024d042863f9be1.zip
[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 <[email protected]> Acked-by: Paul Mackerras <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Martin Schwidefsky <[email protected]> Cc: Stephen Smalley <[email protected]> Cc: James Morris <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
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,
struct file_security_struct *fsec;
/* struct fown_struct is never outside the context of a struct file */
- file = (struct file *)((long)fown - offsetof(struct file,f_owner));
+ file = container_of(fown, struct file, f_owner);
tsec = tsk->security;
fsec = file->f_security;