mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
parent
fa327874bb
commit
405e64c437
@ -177,7 +177,7 @@ static void pvfs_oplock_break_dispatch(struct messaging_context *msg,
|
||||
opb = *p;
|
||||
} else {
|
||||
DEBUG(0,("%s: ignore oplock break with length[%u]\n",
|
||||
__location__, data->length));
|
||||
__location__, (unsigned)data->length));
|
||||
return;
|
||||
}
|
||||
if (opb.file_handle != opl->handle) {
|
||||
|
@ -588,12 +588,20 @@ static NTSTATUS trans2_parse_sfileinfo(struct smbsrv_request *req,
|
||||
case RAW_SFILEINFO_UNIX_BASIC:
|
||||
case RAW_SFILEINFO_UNIX_LINK:
|
||||
case RAW_SFILEINFO_UNIX_HLINK:
|
||||
case RAW_SFILEINFO_1023:
|
||||
case RAW_SFILEINFO_PIPE_INFORMATION:
|
||||
case RAW_SFILEINFO_VALID_DATA_INFORMATION:
|
||||
case RAW_SFILEINFO_SHORT_NAME_INFORMATION:
|
||||
case RAW_SFILEINFO_1025:
|
||||
case RAW_SFILEINFO_1027:
|
||||
case RAW_SFILEINFO_1029:
|
||||
case RAW_SFILEINFO_1030:
|
||||
case RAW_SFILEINFO_1031:
|
||||
case RAW_SFILEINFO_1032:
|
||||
case RAW_SFILEINFO_1039:
|
||||
case RAW_SFILEINFO_1040:
|
||||
case RAW_SFILEINFO_1036:
|
||||
case RAW_SFILEINFO_1041:
|
||||
case RAW_SFILEINFO_1042:
|
||||
case RAW_SFILEINFO_1043:
|
||||
case RAW_SFILEINFO_1044:
|
||||
return NT_STATUS_INVALID_LEVEL;
|
||||
|
||||
default:
|
||||
@ -784,6 +792,7 @@ static NTSTATUS find_fill_info(struct find_state *state,
|
||||
SMBSRV_REQ_DEFAULT_STR_FLAGS(req));
|
||||
|
||||
case RAW_SEARCH_DATA_UNIX_INFO:
|
||||
case RAW_SEARCH_DATA_UNIX_INFO2:
|
||||
return NT_STATUS_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
|
@ -327,7 +327,7 @@ static NTSTATUS smb2srv_tcon_backend(struct smb2srv_request *req, union smb_tcon
|
||||
|
||||
req->ntvfs = ntvfs_request_create(req->tcon->ntvfs, req,
|
||||
req->session->session_info,
|
||||
0, /* TODO: fill in PID */
|
||||
SVAL(req->in.hdr, SMB2_HDR_PID),
|
||||
req->request_time,
|
||||
req, NULL, 0);
|
||||
if (!req->ntvfs) {
|
||||
|
@ -2199,16 +2199,20 @@ static void gen_setfileinfo(int instance, union smb_setfileinfo *info)
|
||||
LVL(STANDARD), LVL(ALLOCATION_INFO), LVL(END_OF_FILE_INFO),
|
||||
LVL(SETATTR), LVL(SETATTRE), LVL(BASIC_INFORMATION),
|
||||
LVL(RENAME_INFORMATION), LVL(DISPOSITION_INFORMATION),
|
||||
LVL(POSITION_INFORMATION), LVL(MODE_INFORMATION),
|
||||
LVL(POSITION_INFORMATION), LVL(FULL_EA_INFORMATION), LVL(MODE_INFORMATION),
|
||||
LVL(ALLOCATION_INFORMATION), LVL(END_OF_FILE_INFORMATION),
|
||||
LVL(1023), LVL(1025), LVL(1029), LVL(1032), LVL(1039), LVL(1040),
|
||||
LVL(PIPE_INFORMATION), LVL(VALID_DATA_INFORMATION), LVL(SHORT_NAME_INFORMATION),
|
||||
LVL(1025), LVL(1027), LVL(1029), LVL(1030), LVL(1031), LVL(1032), LVL(1036),
|
||||
LVL(1041), LVL(1042), LVL(1043), LVL(1044),
|
||||
};
|
||||
struct levels smb2_levels[] = {
|
||||
LVL(BASIC_INFORMATION),
|
||||
LVL(RENAME_INFORMATION), LVL(DISPOSITION_INFORMATION),
|
||||
LVL(POSITION_INFORMATION), LVL(MODE_INFORMATION),
|
||||
LVL(POSITION_INFORMATION), LVL(FULL_EA_INFORMATION), LVL(MODE_INFORMATION),
|
||||
LVL(ALLOCATION_INFORMATION), LVL(END_OF_FILE_INFORMATION),
|
||||
LVL(1023), LVL(1025), LVL(1029), LVL(1032), LVL(1039), LVL(1040)
|
||||
LVL(PIPE_INFORMATION), LVL(VALID_DATA_INFORMATION), LVL(SHORT_NAME_INFORMATION),
|
||||
LVL(1025), LVL(1027), LVL(1029), LVL(1030), LVL(1031), LVL(1032), LVL(1036),
|
||||
LVL(1041), LVL(1042), LVL(1043), LVL(1044),
|
||||
};
|
||||
struct levels *levels = options.smb2?smb2_levels:smb_levels;
|
||||
uint32_t num_levels = options.smb2?ARRAY_SIZE(smb2_levels):ARRAY_SIZE(smb_levels);
|
||||
@ -2276,12 +2280,9 @@ static void gen_setfileinfo(int instance, union smb_setfileinfo *info)
|
||||
|
||||
case RAW_SFILEINFO_GENERIC:
|
||||
case RAW_SFILEINFO_SEC_DESC:
|
||||
case RAW_SFILEINFO_1023:
|
||||
case RAW_SFILEINFO_1025:
|
||||
case RAW_SFILEINFO_1029:
|
||||
case RAW_SFILEINFO_1032:
|
||||
case RAW_SFILEINFO_1039:
|
||||
case RAW_SFILEINFO_1040:
|
||||
case RAW_SFILEINFO_UNIX_BASIC:
|
||||
case RAW_SFILEINFO_UNIX_INFO2:
|
||||
case RAW_SFILEINFO_UNIX_LINK:
|
||||
|
Loading…
Reference in New Issue
Block a user