The branch, master has been updated via 03d0dd2651c vfs_gpfs: Ignore pathref fds for gpfs:recalls check from eed6869da75 smbd: Slightly simplify call_trans2qpipeinfo()
https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 03d0dd2651c9e6552d6c3d9513810e581339ac08 Author: Christof Schmitt <c...@samba.org> Date: Wed Apr 27 15:37:18 2022 -0700 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 <c...@samba.org> Reviewed-by: Ralph Boehme <s...@samba.org> Autobuild-User(master): Ralph Böhme <s...@samba.org> Autobuild-Date(master): Thu Apr 28 07:59:47 UTC 2022 on sn-devel-184 ----------------------------------------------------------------------- Summary of changes: source3/modules/vfs_gpfs.c | 1 + 1 file changed, 1 insertion(+) Changeset truncated at 500 lines: diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 5c2b2c3705e..0f31896b724 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -2335,6 +2335,7 @@ static int vfs_gpfs_openat(struct vfs_handle_struct *handle, return -1); if (config->hsm && !config->recalls && + !fsp->fsp_flags.is_pathref && vfs_gpfs_fsp_is_offline(handle, fsp)) { DBG_DEBUG("Refusing access to offline file %s\n", -- Samba Shared Repository