s3/smbd: remove flags2 FLAGS2_READ_PERMIT_EXECUTE hack in the SMB2 code
commit60e3e10e84983da073fcc539378ec50f88e9f41c
authorRalph Boehme <slow@samba.org>
Fri, 9 Jun 2017 11:02:49 +0000 (9 13:02 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 3 Jul 2017 17:59:08 +0000 (3 19:59 +0200)
treefeddaac92c4b7d1e2d663cc1211009f191d264ab
parent697d8e9e2a48643fe771723beaf1c33f625921f6
s3/smbd: remove flags2 FLAGS2_READ_PERMIT_EXECUTE hack in the SMB2 code

By adding a SMB2 specific CHECK_READ_SMB2 macro called that always
grants read access if execute was granted, we can get rid of the flags2
hack.

All callers in the SMB2 code are converted to use the CHECK_READ_SMB2
macro.

Amongs other things, this later allows moving the handle checks in
copychunk_check_handles() down into the VFS layer where we don't have
access to the smbreq.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/include/smb_macros.h
source3/smbd/smb2_glue.c
source3/smbd/smb2_ioctl_network_fs.c
source3/smbd/smb2_read.c