s3:smbd: ease file server upgrades from 3.6 and earlier with "acl allow execute aways"
authorMichael Adam <obnox@samba.org>
Mon, 2 Sep 2013 15:37:50 +0000 (17:37 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 12 Sep 2013 07:10:10 +0000 (09:10 +0200)
commit434ca3fe2019aecc9522d100fcc1d66632450f0e
tree63541a290d7ae84dc805080fca6fa21d502a413b
parent3f749acd04f9b6a4b39424c2f69179cbba3dceb5
s3:smbd: ease file server upgrades from 3.6 and earlier with "acl allow execute aways"

3.6 and earlier allowed open for execution when execute permissions are
not present on a file. This has been fixed in Samba 4.0.

This patch changes smbd to skip the execute bit from the ACL check
in the open code if "acl allow execute always = yes", hence
re-establishing the old behaviour in this case.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
(cherry picked from commit 1e29d730663382875d96c275c60e022a1c33a2d1)
source3/smbd/open.c