CIFS: Add support for setting owner info, dos attributes, and create time
authorBoris Protopopov <bprotopopov@hotmail.com>
Thu, 19 Dec 2019 16:52:50 +0000 (16:52 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 27 Jan 2020 01:24:17 +0000 (19:24 -0600)
commit438471b67963b8267e94beab383b6d6fc41b3481
tree452efbe42a2343ccba541bf01c1a809068eeaf85
parentc4985c3d9902dcd66f0b61d048560ef2cc415542
CIFS: Add support for setting owner info, dos attributes, and create time

This is needed for backup/restore scenarios among others.

Add extended attribute "system.cifs_ntsd" (and alias "system.smb3_ntsd")
to allow for setting owner and DACL in the security descriptor. This is in
addition to the existing "system.cifs_acl" and "system.smb3_acl" attributes
that allow for setting DACL only. Add support for setting creation time and
dos attributes using set_file_info() calls to complement the existing
support for getting these attributes via query_path_info() calls.

Signed-off-by: Boris Protopopov <bprotopopov@hotmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/xattr.c