diff options
author | David Howells <dhowells@redhat.com> | 2008-11-13 18:39:25 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-11-13 18:39:25 -0500 |
commit | d76b0d9b2d87cfc95686e148767cbf7d0e22bdc0 (patch) | |
tree | 1a2956614018d245facb256ffb8662568cdabcd4 /include/linux/fs.h | |
parent | 1d045980e1eff4800472f0e81df9460640c8eee9 (diff) |
CRED: Use creds in file structs
Attach creds to file structs and discard f_uid/f_gid.
file_operations::open() methods (such as hppfs_open()) should use file->f_cred
rather than current_cred(). At the moment file->f_cred will be current_cred()
at this point.
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: James Morris <jmorris@namei.org>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 3bfec1327b8d..c0fb6d81d89b 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -827,7 +827,7 @@ struct file { | |||
827 | fmode_t f_mode; | 827 | fmode_t f_mode; |
828 | loff_t f_pos; | 828 | loff_t f_pos; |
829 | struct fown_struct f_owner; | 829 | struct fown_struct f_owner; |
830 | unsigned int f_uid, f_gid; | 830 | const struct cred *f_cred; |
831 | struct file_ra_state f_ra; | 831 | struct file_ra_state f_ra; |
832 | 832 | ||
833 | u64 f_version; | 833 | u64 f_version; |