CRED: Use creds in file structs
authorDavid Howells <dhowells@redhat.com>
Thu, 13 Nov 2008 23:39:25 +0000 (10:39 +1100)
committerJames Morris <jmorris@namei.org>
Thu, 13 Nov 2008 23:39:25 +0000 (10:39 +1100)
commitd76b0d9b2d87cfc95686e148767cbf7d0e22bdc0
tree1a2956614018d245facb256ffb8662568cdabcd4
parent1d045980e1eff4800472f0e81df9460640c8eee9
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>
arch/mips/kernel/vpe.c
drivers/isdn/hysdn/hysdn_procconf.c
fs/coda/file.c
fs/file_table.c
fs/hppfs/hppfs.c
include/linux/fs.h
net/ipv4/netfilter/ipt_LOG.c
net/ipv6/netfilter/ip6t_LOG.c
net/netfilter/nfnetlink_log.c
net/netfilter/xt_owner.c
net/sched/cls_flow.c