[PVFS-developers] do_access bug

Rob Ross rross at mcs.anl.gov
Fri Jun 25 09:50:49 EDT 2004


Applied; thanks!

Rob

On Tue, 15 Jun 2004, Porter Don wrote:

> 
> Greetings all,
> 
> I found a small bug in the semantics of do_access.  It misses the case of a
> file that is 770, owned by someone else, and owned by a group of which one
> is a member, but that group is not the user's default group.  This is
> because the function only check if the request's gid is equal to the gid
> that owns the file.
> 
> I fixed this by changing that line to a call to in_group() with the uid of
> the request and the target group.  Thus, the user's membership in the given
> group is checked.
> 
> I also went ahead and added the case that the request came from root,
> allowing root to do whatever (s)he so desires.
> 
> Patch attached as usual.
> 
> Thanks,
> Don
> 
> 


More information about the PVFS-developers mailing list