[linux-cifs-client] patch to fix an error during set security
descriptor
simo
idra at samba.org
Mon Feb 11 19:00:17 GMT 2008
On Mon, 2008-02-11 at 00:27 -0600, Shirish Pargaonkar wrote:
> 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.
Good catch!
Simo.
--
Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Senior Software Engineer at Red Hat Inc. <ssorce at redhat.com>
More information about the linux-cifs-client
mailing list