diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-11-18 11:45:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:26 -0500 |
commit | d5f37ecf94e2b63511102b3fd34c0e7bcd8d7879 (patch) | |
tree | 3f3e475cf6caf96b67b4acf126af8a119546f656 /source4/torture/smb2 | |
parent | 70a01587b918718ddcbc11d4a7412c53211f04b8 (diff) | |
download | samba-d5f37ecf94e2b63511102b3fd34c0e7bcd8d7879.tar.gz samba-d5f37ecf94e2b63511102b3fd34c0e7bcd8d7879.tar.bz2 samba-d5f37ecf94e2b63511102b3fd34c0e7bcd8d7879.zip |
r11780: it turns out that the MxAc tag isn't a security descriptor, its a
request that the server return its own MxAc blob which contains the
maximum allowed access_mask for the returned file handle
(This used to be commit c0288aa8cd46ca384074f89430c226d725c39475)
Diffstat (limited to 'source4/torture/smb2')
-rw-r--r-- | source4/torture/smb2/util.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c index 7afce0137f..b39f53d8e1 100644 --- a/source4/torture/smb2/util.c +++ b/source4/torture/smb2/util.c @@ -103,7 +103,7 @@ static NTSTATUS smb2_create_complex(struct smb2_tree *tree, const char *fname, smb2_util_unlink(tree, fname); ZERO_STRUCT(io); - io.in.access_mask = SEC_RIGHTS_FILE_ALL; + io.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED; io.in.file_attr = FILE_ATTRIBUTE_NORMAL; io.in.open_disposition = NTCREATEX_DISP_OVERWRITE_IF; io.in.share_access = @@ -119,18 +119,6 @@ static NTSTATUS smb2_create_complex(struct smb2_tree *tree, const char *fname, io.in.open_disposition = NTCREATEX_DISP_CREATE; } - io.in.sd = security_descriptor_create(tmp_ctx, - NULL, NULL, - SID_NT_AUTHENTICATED_USERS, - SEC_ACE_TYPE_ACCESS_ALLOWED, - SEC_RIGHTS_FILE_ALL | SEC_STD_ALL, - 0, - SID_WORLD, - SEC_ACE_TYPE_ACCESS_ALLOWED, - SEC_RIGHTS_FILE_READ | SEC_STD_ALL, - 0, - NULL); - if (strchr(fname, ':') == NULL) { /* setup some EAs */ io.in.eas.num_eas = 2; |