[linux-cifs-client] patch to fix an error during set security descriptor

Shirish Pargaonkar shirishpargaonkar at gmail.com
Mon Feb 11 06:27:10 GMT 2008


As per current implementation of chmod, cifs client send a security descriptor
consisting of three aces in a dacl, owner, group, and other.
There is bug i.e. the allocated size to build security descriptor
utilizes the size
obtained during get security descriptor.  This size can be smaller as the
file may have less than three aces in which case the allocated size of
security descriptor to set is inadequate.
This fix allocates a minimum size needed to build the largest possible
security descriptor containing three aces.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cifsacl.dacllen.patch
Type: text/x-patch
Size: 1733 bytes
Desc: not available
Url : http://lists.samba.org/archive/linux-cifs-client/attachments/20080211/c9067fd9/cifsacl.dacllen.bin


More information about the linux-cifs-client mailing list