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>
Showing
- arch/mips/kernel/vpe.c 2 additions, 2 deletionsarch/mips/kernel/vpe.c
- drivers/isdn/hysdn/hysdn_procconf.c 4 additions, 2 deletionsdrivers/isdn/hysdn/hysdn_procconf.c
- fs/coda/file.c 1 addition, 1 deletionfs/coda/file.c
- fs/file_table.c 4 additions, 3 deletionsfs/file_table.c
- fs/hppfs/hppfs.c 2 additions, 2 deletionsfs/hppfs/hppfs.c
- include/linux/fs.h 1 addition, 1 deletioninclude/linux/fs.h
- net/ipv4/netfilter/ipt_LOG.c 2 additions, 2 deletionsnet/ipv4/netfilter/ipt_LOG.c
- net/ipv6/netfilter/ip6t_LOG.c 2 additions, 2 deletionsnet/ipv6/netfilter/ip6t_LOG.c
- net/netfilter/nfnetlink_log.c 3 additions, 2 deletionsnet/netfilter/nfnetlink_log.c
- net/netfilter/xt_owner.c 8 additions, 8 deletionsnet/netfilter/xt_owner.c
- net/sched/cls_flow.c 2 additions, 2 deletionsnet/sched/cls_flow.c
Loading