View | Details | Raw Unified | Return to bug 199725 | Differences between
and this patch

Collapse All | Expand All

(-)a/fs/cifs/cifsacl.h (+14 lines)
Lines 40-45 Link Here
40
#define SIDGROUP 2
40
#define SIDGROUP 2
41
41
42
/*
42
/*
43
 * Minimum security identifier can be one for system defined Users
44
 * and Groups such as NULL SID and World or Built-in accounts such
45
 * as Administrator and Guest and consists of
46
 * SID string format designator + Revision + Authority + Domain (1 Subauthority)
47
 */
48
#define MIN_SID_LEN  (1 + 1 + 6 + 1)
49
50
/*
51
 * Minimum security descriptor can be one without any SACL and DACL and can
52
 * consist of revision, type, and two sids of minimum size for owner and group
53
 */
54
#define MIN_SEC_DESC_LEN  (1 + 2 + (2 * MIN_SID_LEN))
55
56
/*
43
 * Security Descriptor length containing DACL with 3 ACEs (one each for
57
 * Security Descriptor length containing DACL with 3 ACEs (one each for
44
 * owner, group and world).
58
 * owner, group and world).
45
 */
59
 */
(-)a/fs/cifs/smb2pdu.c (-2 / +1 lines)
Lines 2360-2367 int SMB2_query_info(const unsigned int xid, struct cifs_tcon *tcon, Link Here
2360
	return query_info(xid, tcon, persistent_fid, volatile_fid,
2360
	return query_info(xid, tcon, persistent_fid, volatile_fid,
2361
			  FILE_ALL_INFORMATION, SMB2_O_INFO_FILE, 0,
2361
			  FILE_ALL_INFORMATION, SMB2_O_INFO_FILE, 0,
2362
			  sizeof(struct smb2_file_all_info) + PATH_MAX * 2,
2362
			  sizeof(struct smb2_file_all_info) + PATH_MAX * 2,
2363
			  sizeof(struct smb2_file_all_info), (void **)&data,
2363
			  MIN_SEC_DESC_LEN, (void **)&data, NULL);
2364
			  NULL);
2365
}
2364
}
2366
2365
2367
int
2366
int

Return to bug 199725