aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifspdu.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/cifspdu.h')
-rw-r--r--fs/cifs/cifspdu.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/fs/cifs/cifspdu.h b/fs/cifs/cifspdu.h
index c41ff74e9128..47f79504f57b 100644
--- a/fs/cifs/cifspdu.h
+++ b/fs/cifs/cifspdu.h
@@ -220,6 +220,26 @@
220 | FILE_WRITE_EA | FILE_WRITE_ATTRIBUTES) 220 | FILE_WRITE_EA | FILE_WRITE_ATTRIBUTES)
221#define FILE_EXEC_RIGHTS (FILE_EXECUTE) 221#define FILE_EXEC_RIGHTS (FILE_EXECUTE)
222 222
223#define SET_FILE_READ_RIGHTS (FILE_READ_DATA | FILE_READ_EA | FILE_WRITE_EA \
224 | FILE_READ_ATTRIBUTES \
225 | FILE_WRITE_ATTRIBUTES \
226 | DELETE | READ_CONTROL | WRITE_DAC \
227 | WRITE_OWNER | SYNCHRONIZE)
228#define SET_FILE_WRITE_RIGHTS (FILE_WRITE_DATA | FILE_APPEND_DATA \
229 | FILE_READ_EA | FILE_WRITE_EA \
230 | FILE_DELETE_CHILD | FILE_READ_ATTRIBUTES \
231 | FILE_WRITE_ATTRIBUTES \
232 | DELETE | READ_CONTROL | WRITE_DAC \
233 | WRITE_OWNER | SYNCHRONIZE)
234#define SET_FILE_EXEC_RIGHTS (FILE_READ_EA | FILE_WRITE_EA | FILE_EXECUTE \
235 | FILE_READ_ATTRIBUTES \
236 | FILE_WRITE_ATTRIBUTES \
237 | DELETE | READ_CONTROL | WRITE_DAC \
238 | WRITE_OWNER | SYNCHRONIZE)
239
240#define SET_MINIMUM_RIGHTS (FILE_READ_EA | FILE_READ_ATTRIBUTES \
241 | READ_CONTROL | SYNCHRONIZE)
242
223 243
224/* 244/*
225 * Invalid readdir handle 245 * Invalid readdir handle
@@ -1211,6 +1231,29 @@ typedef struct smb_com_transaction_qsec_req {
1211 __le32 AclFlags; 1231 __le32 AclFlags;
1212} __attribute__((packed)) QUERY_SEC_DESC_REQ; 1232} __attribute__((packed)) QUERY_SEC_DESC_REQ;
1213 1233
1234
1235typedef struct smb_com_transaction_ssec_req {
1236 struct smb_hdr hdr; /* wct = 19 */
1237 __u8 MaxSetupCount;
1238 __u16 Reserved;
1239 __le32 TotalParameterCount;
1240 __le32 TotalDataCount;
1241 __le32 MaxParameterCount;
1242 __le32 MaxDataCount;
1243 __le32 ParameterCount;
1244 __le32 ParameterOffset;
1245 __le32 DataCount;
1246 __le32 DataOffset;
1247 __u8 SetupCount; /* no setup words follow subcommand */
1248 /* SNIA spec incorrectly included spurious pad here */
1249 __le16 SubCommand; /* 3 = SET_SECURITY_DESC */
1250 __le16 ByteCount; /* bcc = 3 + 8 */
1251 __u8 Pad[3];
1252 __u16 Fid;
1253 __u16 Reserved2;
1254 __le32 AclFlags;
1255} __attribute__((packed)) SET_SEC_DESC_REQ;
1256
1214typedef struct smb_com_transaction_change_notify_req { 1257typedef struct smb_com_transaction_change_notify_req {
1215 struct smb_hdr hdr; /* wct = 23 */ 1258 struct smb_hdr hdr; /* wct = 23 */
1216 __u8 MaxSetupCount; 1259 __u8 MaxSetupCount;