summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-08-28 22:53:09 +0000
committerTim Prouty <tprouty@samba.org>2009-09-24 10:59:33 -0700
commitad96c11182db093fe41a4f6177580e70271574ea (patch)
treec088c54a5b04f89b8893c9bc956598edc5f72ba5
parent86b1a4cb868ee646326bff8b5c3ba807fb0556be (diff)
downloadsamba-ad96c11182db093fe41a4f6177580e70271574ea.tar.gz
samba-ad96c11182db093fe41a4f6177580e70271574ea.tar.bz2
samba-ad96c11182db093fe41a4f6177580e70271574ea.zip
s4 torture: Fix RAW-STREAMS to request more specific permissions
This allows RAW-STREAMS to pass when the user isn't root on some systems that don't give full access rights to non-root users.
-rw-r--r--source4/torture/raw/streams.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/raw/streams.c b/source4/torture/raw/streams.c
index 818eb402dd..6c5dc85a10 100644
--- a/source4/torture/raw/streams.c
+++ b/source4/torture/raw/streams.c
@@ -380,7 +380,7 @@ static bool test_stream_io(struct torture_context *tctx,
io.ntcreatex.in.fname = sname2;
io.ntcreatex.in.create_options = NTCREATEX_OPTIONS_DELETE_ON_CLOSE;
io.ntcreatex.in.share_access = NTCREATEX_SHARE_ACCESS_DELETE;
- io.ntcreatex.in.access_mask = SEC_RIGHTS_FILE_ALL;
+ io.ntcreatex.in.access_mask = SEC_STD_DELETE;
io.ntcreatex.in.open_disposition = NTCREATEX_DISP_OPEN;
status = smb_raw_open(cli->tree, mem_ctx, &io);
@@ -1091,6 +1091,7 @@ static bool test_stream_rename(struct torture_context *tctx,
* Open the second stream.
*/
+ io.ntcreatex.in.access_mask = SEC_STD_DELETE;
io.ntcreatex.in.open_disposition = NTCREATEX_DISP_OPEN_IF;
status = smb_raw_open(cli->tree, mem_ctx, &io);
CHECK_STATUS(status, NT_STATUS_OK);