]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: kuid and kgid conversions for nfs/inode.c
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 1 Feb 2013 22:26:23 +0000 (14:26 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 13 Feb 2013 14:15:33 +0000 (06:15 -0800)
commit72b6fca0c4c25c82d2b93bdde836df86250e604c
treecec4de986fba9139c02dc94e81b871ffeb87de0b
parentb0524f6e62644d256674aa75299e5e4e43f2a557
nfs: kuid and kgid conversions for nfs/inode.c

- Use uid_eq and gid_eq when comparing kuids and kgids.
- Use make_kuid(&init_user_ns, -2) and make_kgid(&init_user_ns, -2) as
  the initial uid and gid on nfs inodes, instead of using the typeunsafe
  value of -2.

Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/nfs/inode.c