summaryrefslogtreecommitdiff
path: root/fs/cifs/cifsacl.h
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2020-06-12 17:25:21 +0300
committerSteve French <stfrench@microsoft.com>2020-06-12 21:21:15 +0300
commit975221eca5fbfdb4b6b1d17c9e540d4d7627ce18 (patch)
tree198ac249e567c11a1702d89557bcac88e43fdd8b /fs/cifs/cifsacl.h
parente4bd7c4a8d2a8471d821dd29919378d1b8567091 (diff)
downloadlinux-975221eca5fbfdb4b6b1d17c9e540d4d7627ce18.tar.xz
smb3: allow uid and gid owners to be set on create with idsfromsid mount option
Currently idsfromsid mount option allows querying owner information from the special sids used to represent POSIX uids and gids but needed changes to populate the security descriptor context with the owner information when idsfromsid mount option was used. Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsacl.h')
-rw-r--r--fs/cifs/cifsacl.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/cifs/cifsacl.h b/fs/cifs/cifsacl.h
index 21d7dee98d01..17562ea00e18 100644
--- a/fs/cifs/cifsacl.h
+++ b/fs/cifs/cifsacl.h
@@ -176,6 +176,21 @@ struct smb3_acl {
__le16 Sbz2; /* MBZ */
} __packed;
+/*
+ * Used to store the special 'NFS SIDs' used to persist the POSIX uid and gid
+ * See See http://technet.microsoft.com/en-us/library/hh509017(v=ws.10).aspx
+ */
+struct owner_sid {
+ u8 Revision;
+ u8 NumAuth;
+ u8 Authority[6];
+ __le32 SubAuthorities[3];
+} __packed;
+
+struct owner_group_sids {
+ struct owner_sid owner;
+ struct owner_sid group;
+} __packed;
/*
* Minimum security identifier can be one for system defined Users