Due to a bug[1] in glfs_openat() O_CREAT open flag was handled separately via glfs_creat() in vfs_gluster_openat(). With recent fix[2] O_CREAT is now correctly handled and thus corresponding special case can be taken out making SMB_VFS_OPENAT implementation safe against symlink races. [1] https://github.com/gluster/glusterfs/issues/3838 [2] https://github.com/gluster/glusterfs/pull/3839
Created attachment 17544 [details] patch for v4-17
Re-assigning to Jule for v4-17.next
Pushed to autobuild-v4-17-test. BUG tag added.
(In reply to Jule Anger from comment #3) Adding the missing RB+ for the backport...
This bug was referenced in samba v4-17-test: cb27978c461e276d31029474454ede3fc37483bf
Comment on attachment 17544 [details] patch for v4-17 LGTM, thanks for taking care of this!
Closing out bug report. Thanks!
This bug was referenced in samba v4-17-stable (Release samba-4.17.1): cb27978c461e276d31029474454ede3fc37483bf