mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
torture3: cli_query_security_descriptor() does smb2 as well
Remove a direct caller Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
2562890724
commit
c6fef155d0
@ -2819,11 +2819,8 @@ bool run_smb2_sacl(int dummy)
|
||||
}
|
||||
|
||||
/* Try and read the SACL - should succeed. */
|
||||
status = cli_smb2_query_security_descriptor(cli,
|
||||
fnum,
|
||||
SECINFO_SACL,
|
||||
talloc_tos(),
|
||||
&sd_sacl);
|
||||
status = cli_query_security_descriptor(
|
||||
cli, fnum, SECINFO_SACL, talloc_tos(), &sd_sacl);
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
printf("Read SACL from file %s failed (%s)\n",
|
||||
@ -2838,11 +2835,8 @@ bool run_smb2_sacl(int dummy)
|
||||
* Try and read the DACL - should fail as we have
|
||||
* no READ_DAC access.
|
||||
*/
|
||||
status = cli_smb2_query_security_descriptor(cli,
|
||||
fnum,
|
||||
SECINFO_DACL,
|
||||
talloc_tos(),
|
||||
&sd_sacl);
|
||||
status = cli_query_security_descriptor(
|
||||
cli, fnum, SECINFO_DACL, talloc_tos(), &sd_sacl);
|
||||
|
||||
if (!NT_STATUS_EQUAL(status, NT_STATUS_ACCESS_DENIED)) {
|
||||
printf("Reading DACL on file %s got (%s) "
|
||||
|
Loading…
Reference in New Issue
Block a user