aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2014-10-19 20:18:05 -0400
committerSteve French <steve.french@primarydata.com>2014-12-07 23:17:19 -0500
commit911a8dfa47a45ff52d771a5b4162ce3b1e55b33d (patch)
tree48759cd918a2f759bd7d3724691d2803d5d69394
parent9ccf3216238ca70c0df2ff06494fcf616b62e7dc (diff)
Add missing defines for ACL query support
Add missing defines needed for ACL query support. For definitions of these security info type additionalinfo flags and also the EA Flags see MS-SMB2 (2.2.37) or MS-DTYP Signed-of-by: Steven French <smfrench@gmail.com> Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
-rw-r--r--fs/cifs/smb2pdu.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h
index e3188abdafd0..d84f46c5b2c5 100644
--- a/fs/cifs/smb2pdu.h
+++ b/fs/cifs/smb2pdu.h
@@ -836,6 +836,25 @@ struct smb2_query_directory_rsp {
836#define SMB2_O_INFO_SECURITY 0x03 836#define SMB2_O_INFO_SECURITY 0x03
837#define SMB2_O_INFO_QUOTA 0x04 837#define SMB2_O_INFO_QUOTA 0x04
838 838
839/* Security info type additionalinfo flags. See MS-SMB2 (2.2.37) or MS-DTYP */
840#define OWNER_SECINFO 0x00000001
841#define GROUP_SECINFO 0x00000002
842#define DACL_SECINFO 0x00000004
843#define SACL_SECINFO 0x00000008
844#define LABEL_SECINFO 0x00000010
845#define ATTRIBUTE_SECINFO 0x00000020
846#define SCOPE_SECINFO 0x00000040
847#define BACKUP_SECINFO 0x00010000
848#define UNPROTECTED_SACL_SECINFO 0x10000000
849#define UNPROTECTED_DACL_SECINFO 0x20000000
850#define PROTECTED_SACL_SECINFO 0x40000000
851#define PROTECTED_DACL_SECINFO 0x80000000
852
853/* Flags used for FileFullEAinfo */
854#define SL_RESTART_SCAN 0x00000001
855#define SL_RETURN_SINGLE_ENTRY 0x00000002
856#define SL_INDEX_SPECIFIED 0x00000004
857
839struct smb2_query_info_req { 858struct smb2_query_info_req {
840 struct smb2_hdr hdr; 859 struct smb2_hdr hdr;
841 __le16 StructureSize; /* Must be 41 */ 860 __le16 StructureSize; /* Must be 41 */