Bug 9396 - Samba fails the no_share_delete_no_delete_access subtest of the smb2.rename test
Samba fails the no_share_delete_no_delete_access subtest of the smb2.rename test
Status: ASSIGNED
Product: Samba 4.0
Classification: Unclassified
Component: File services
unspecified
All All
: P5 normal
: ---
Assigned To: Jeremy Allison
Samba QA Contact
:
Depends on:
Blocks: 9395
  Show dependency treegraph
 
Reported: 2012-11-15 04:53 UTC by Richard Sharpe
Modified: 2012-11-16 23:25 UTC (History)
0 users

See Also:


Attachments
Patchset for master. (13.79 KB, patch)
2012-11-16 19:48 UTC, Jeremy Allison
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Sharpe 2012-11-15 04:53:59 UTC
Samba also fails the no_share_delete_no_delete_access subtest of the smb2.rename test.

time: 2012-11-14 17:04:09.040840
failure: no_share_delete_no_delete_access [
(../source4/torture/smb2/rename.c:761) Incorrect status NT_STATUS_OK -
should be NT_STATUS_SHARING_VIOLATION
]

This test opens a file, then opens the parent directory with DENY_ALL
sharing, and then tries to rename the file opened.

This should fail, I believe, with SHARING_VIOLATION but it succeeds.
Comment 1 Jeremy Allison 2012-11-16 19:48:46 UTC
Created attachment 8209 [details]
Patchset for master.

Fixes both raw.rename and smb2.rename (and also fixes bug 9395, which I'll make dependent on this bug).

Jeremy.
Comment 2 Jeremy Allison 2012-11-16 23:25:10 UTC
Comment on attachment 8209 [details]
Patchset for master.

Ignore this patchset, breaks raw.oplocks. I'll keep working on getting it right.

Jeremy.