vfs_gpfs: Ignore pathref fds for gpfs:recalls check
authorChristof Schmitt <cs@samba.org>
Wed, 27 Apr 2022 22:37:18 +0000 (15:37 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 28 Apr 2022 07:59:47 +0000 (07:59 +0000)
commit03d0dd2651c9e6552d6c3d9513810e581339ac08
tree1ea7934035aa9ee795748a9e0fa3c450b94284d6
parenteed6869da75c299a4551db0853eb70ba9633a5d0
vfs_gpfs: Ignore pathref fds for gpfs:recalls check

Setting gpfs:recalls=no should prevent data access to offline files.
Since Samba 4.14, the VFS openat function is also called with O_PATH to
get a reference to the path. These accesses should not be blocked,
otherwise this would prevent offline files from being included in
directory listings.

Fix this by skipping the check for pathref fds.

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

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Thu Apr 28 07:59:47 UTC 2022 on sn-devel-184
source3/modules/vfs_gpfs.c