seltest: allow opening files with arbitrary rights in smb2.ioctl tests
commit5ba3f0c48f98008406a996950c7cd4821faca33f
authorUri Simchoni <uri@samba.org>
Mon, 15 Aug 2016 20:39:50 +0000 (15 23:39 +0300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 13 Sep 2016 10:27:27 +0000 (13 12:27 +0200)
tree1c725a3429c872f0df0cd1ae037d328d933e61c3
parent577b459d29323b6fb2d005aab1ce125ac7dc1131
seltest: allow opening files with arbitrary rights in smb2.ioctl tests

Separate file creation (which requires write access) from the
opening of the file for the test (which might be without write
access).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12149

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
(cherry picked from commit 6ce0304eda4b464972defcecd591fab03428bd03)
source4/torture/smb2/ioctl.c