cifs: Call id to SID mapping functions to change owner/group (try #4 repost)
authorShirish Pargaonkar <shirishpargaonkar@gmail.com>
Thu, 13 Oct 2011 15:26:03 +0000 (10:26 -0500)
committerSteve French <smfrench@gmail.com>
Mon, 17 Oct 2011 14:11:11 +0000 (09:11 -0500)
commita5ff376966c079bd2f078524eff11b0c63cc2507
treef0a6576a0987ba73589caaadc2b4fde1b24650b5
parentd59dad2be038132259ac99a2837d65a87fd90588
cifs: Call id to SID mapping functions to change owner/group (try #4 repost)

Now build security descriptor to change either owner or group at the
server.  Initially security descriptor was built to change only
(D)ACL, that functionality has been extended.

When either an Owner or a Group of a file object at the server is changed,
rest of security descriptor remains same (DACL etc.).

To set security descriptor, it is necessary to open that file
with permission bits of either WRITE_DAC if DACL is being modified or
WRITE_OWNER (Take Ownership) if Owner or Group is being changed.

It is the server that decides whether a set security descriptor with
either owner or group change succeeds or not.

Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsacl.c
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/inode.c
fs/cifs/xattr.c