vfs_gpfs: Retry getacl with DAC capability if necessary
authorChristof Schmitt <cs@samba.org>
Thu, 26 May 2016 05:56:49 +0000 (22:56 -0700)
committerChristof Schmitt <cs@samba.org>
Mon, 25 Jul 2016 08:30:02 +0000 (10:30 +0200)
commit3a683b10951e7a003ff27d4ceba381bfd5e686d5
tree90f06539529077fe93d18ceba5afa2eaad296e1e
parent4c5367d84b0b51d5597b652a59ba43688731572c
vfs_gpfs: Retry getacl with DAC capability if necessary

Samba always tries to read the ACL of a file and checks it internally.
If the READ_ACL permission is missing in GPFS, then then reading the ACL
for Samba internal evaluation will be denied and opening the file or
directory fails. Change this by retrying reading the ACL with the DAC
capability if access was denied.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Christof Schmitt <cs@samba.org>
Autobuild-Date(master): Mon Jul 25 10:30:02 CEST 2016 on sn-devel-144
source3/modules/vfs_gpfs.c