s3: smbd: Ensure open for security descriptor access actually opens an fd.
authorJeremy Allison <jra@samba.org>
Thu, 13 Jun 2019 16:44:27 +0000 (09:44 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 24 Jun 2019 18:49:08 +0000 (18:49 +0000)
commit56c9ad12ee3e40569fd10c60526086ab2fbb3c10
tree1861b24499b2f8731e3d6780e9b6cd306698a72b
parent4f32983ea8a24466165c043a73cb47b4073da15f
s3: smbd: Ensure open for security descriptor access actually opens an fd.

Change test to check two things:
1) Open a symlink for SD read or write access should fail.
2) Request attribute open. Getsd/Setsd on this handle should
fail.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/open.c
source3/torture/torture.c