CRED: Wrap task credential accesses in the filesystem subsystem
Wrap access to task credentials so that they can be separated more easily from the task_struct during the introduction of COW creds. Change most current->(|e|s|fs)[ug]id to current_(|e|s|fs)[ug]id(). Change some task->e?[ug]id to task_e?[ug]id(). In some places it makes more sense to use RCU directly rather than a convenient wrapper; these will be addressed by later patches. Signed-off-by:David Howells <dhowells@redhat.com> Reviewed-by:
James Morris <jmorris@namei.org> Acked-by:
Serge Hallyn <serue@us.ibm.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by:
James Morris <jmorris@namei.org>
Showing
- fs/anon_inodes.c 2 additions, 2 deletionsfs/anon_inodes.c
- fs/attr.c 2 additions, 2 deletionsfs/attr.c
- fs/binfmt_elf_fdpic.c 4 additions, 4 deletionsfs/binfmt_elf_fdpic.c
- fs/dquot.c 2 additions, 2 deletionsfs/dquot.c
- fs/exec.c 9 additions, 9 deletionsfs/exec.c
- fs/fcntl.c 1 addition, 1 deletionfs/fcntl.c
- fs/inotify_user.c 1 addition, 1 deletionfs/inotify_user.c
- fs/ioprio.c 2 additions, 2 deletionsfs/ioprio.c
- fs/locks.c 1 addition, 1 deletionfs/locks.c
- fs/namei.c 6 additions, 4 deletionsfs/namei.c
- fs/namespace.c 1 addition, 1 deletionfs/namespace.c
- fs/pipe.c 2 additions, 2 deletionsfs/pipe.c
- fs/posix_acl.c 2 additions, 2 deletionsfs/posix_acl.c
- fs/quota.c 2 additions, 2 deletionsfs/quota.c
- include/linux/fs.h 1 addition, 1 deletioninclude/linux/fs.h
Loading
Please register or sign in to comment