[PATCH v9] vfs_glusterfs: Samba VFS module for glusterfs

Simo simo at samba.org
Wed May 29 15:58:46 MDT 2013


On 05/29/2013 07:21 AM, Anand Avati wrote:
> Implement a Samba VFS plugin for glusterfs based on gluster's gfapi.
> This is a "bottom" vfs plugin (not something to be stacked on top of
> another module), and translates (most) calls into closest actions
> on gfapi.
Anand before we push this in samba I would like to have an answer about 
access control.

I have tried to find out exactly how access control is handled but the 
code is complex.

However what I found so far is not encouraging.

I see things like:

#define GF_MAX_AUX_GROUPS 200

and then in syncop_create_frame() that value is used to cap the max 
number of auxiliary groups.

In Linux the max number of auxiliary groups is 65536 and we have seen 
easily 2k auxiliary groups attached to a user in Windows domains.

It also seem to me that this 'frame' is stored in thread local storage 
and reused is found, but I do not see any code to check that the current 
identity still matches the process identity. It may be that I haven't 
found it yet but so far it looks to me that you have one shot to set the 
identity of the caller and then it is assumed the same for all operations ?
That won't work with samba.

Can you shed some light here please ?


Simo.

-- 
Simo Sorce
Samba Team Member <simo at samba.org>
Principal Software Engineer at Red Hat, Inc. <simo at redhat.com>



More information about the samba-technical mailing list