On Mon, 20 Jun 2011 17:01:23 -0500
[email protected] wrote:

> From: Shirish Pargaonkar <[email protected]>
> 
> 
> Now build security descriptor to change either owner or group at the
> server.  Initially security descriptor was built to change only
> ACL, that functionality has been extended.
> 
> When either an Owner or Group of a file object at the server is changed,
> rest of security descriptor remains same (DACL etc.).
> 
> To set security descriptor, it is essential to open that file
> with WRITE_DAC as well as WRITE_OWNER (Take Ownership) permission bits.
> Function set_cifs_acl_by_fid() has been removed since we can't be
> sure how a file was opened for writing, a valid request can fail
> if the file was not opened with two above mentioned permissions.
> 
> It is the server that decides whether a set security descriptor with
> either owner or group change succeeds or not.
> 

I'd like to see an explanation for what problem this solves and why
this is useful.

Why should I care about this set? With this, what can I do that I
couldn't do before -- chown()/chgrp()? Also, how was this set tested?
In particular I'd like to understand how you tested the part that
handles chown(). Doesn't that require mounting as a user that has
elevated permissions?

-- 
Jeff Layton <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to