[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#310982: smbmount does not honor uid and gid options with 2.4 kernel



On Sat, 2005-05-28 at 18:39 +0200, Bill Allombert wrote:
> On Fri, May 27, 2005 at 12:20:49PM -0700, Steve Langasek wrote:
> > On Sat, May 28, 2005 at 05:17:39AM +1000, Andrew Bartlett wrote:
> > Yeah, on second look I see that it can be done in smbmount, and this would
> > be a far more expedient fix.
> 
> You mean something like the patch below ?
> (Not tested yet, want to be sure this is the idea)

The problem is that CAP_UNIX is far, far more than just the uid/gid/mode
stuff.  For example, case sensitive pathnames and all sorts of other
'posix' things are (potentially, I've not looked at what smbfs does
currently) keyed of this.  The list is growing, mostly for the cifs vfs,
but I didn't expect the uid/gid stuff to be ported back either.

The correct fix for this problem (if you are not willing to accept, as
apparently everybody has since this 'problem' appeared over a year ago)
is to have the kernel continue to honour the uid/gid/mode options,
despite the extra information being available from the remote server.

My worry is that sarge will forever have CAP_UNIX removed from smbfs,
even when the kernel is fixed (if that is indeed a required solution).

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: