summaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorDavid Howells2009-01-05 18:19:37 +0100
committerJ. Bruce Fields2009-01-07 21:40:44 +0100
commitf05ef8db1abe68e3f6fc272efee51bc54ce528c5 (patch)
tree8e74dfecce221e51ec3631c66c0e4f8ce589b566 /net/sunrpc
parentNLM: Clean up flow of control in make_socks() function (diff)
downloadkernel-qcow2-linux-f05ef8db1abe68e3f6fc272efee51bc54ce528c5.tar.gz
kernel-qcow2-linux-f05ef8db1abe68e3f6fc272efee51bc54ce528c5.tar.xz
kernel-qcow2-linux-f05ef8db1abe68e3f6fc272efee51bc54ce528c5.zip
CRED: Fix NFSD regression
Fix a regression in NFSD's permission checking introduced by the credentials patches. There are two parts to the problem, both in nfsd_setuser(): (1) The return value of set_groups() is -ve if in error, not 0, and should be checked appropriately. 0 indicates success. (2) The UID to use for fs accesses is in new->fsuid, not new->uid (which is 0). This causes CAP_DAC_OVERRIDE to always be set, rather than being cleared if the UID is anything other than 0 after squashing. Reported-by: J. Bruce Fields <bfields@fieldses.org> Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: James Morris <jmorris@namei.org> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'net/sunrpc')
0 files changed, 0 insertions, 0 deletions