diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2007-11-30 16:55:23 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-02-01 16:42:07 -0500 |
commit | 5c002b3bb294a637312cab7ad92a0deafa05a758 (patch) | |
tree | 0183f792fe61fe1bb6a117baf385020feb5b085c /fs/dlm | |
parent | 29dbf546159f5701e11de26fa2da5c4a962e0f83 (diff) |
nfsd: allow root to set uid and gid on create
The server silently ignores attempts to set the uid and gid on create.
Based on the comment, this appears to have been done to prevent some
overly-clever IRIX client from causing itself problems.
Perhaps we should remove that hack completely. For now, at least, it
makes sense to allow root (when no_root_squash is set) to set uid and
gid.
While we're there, since nfsd_create and nfsd_create_v3 share the same
logic, pull that out into a separate function. And spell out the
individual modifications of ia_valid instead of doing them both at once
inside a conditional.
Thanks to Roger Willcocks <roger@filmlight.ltd.uk> for the bug report
and original patch on which this is based.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/dlm')
0 files changed, 0 insertions, 0 deletions