From: Ralph Boehme Date: Tue, 24 Nov 2020 11:20:23 +0000 (+0100) Subject: vfs: add fsp flag "have_proc_fds" X-Git-Tag: samba-4.14.0rc1~400 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2af46c7fda60780e85a37ff0872a3a8c5b1631ff;p=thirdparty%2Fsamba.git vfs: add fsp flag "have_proc_fds" This flag is used by the VFS layer to tell the FSA layer that it is allowed to reopen an fsp by using an exisiting pathref fd with /proc/PID/fd/FD to open a full fd. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 3a0b77fc928..d46fe096aa1 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -336,6 +336,7 @@ * Version 44 - Add a flag 'is_pathref' to struct files_struct. * Version 44 - Add 'is_fsa' flag to struct files_struct. * Version 44 - Add 'have_proc_fds' flag to struct connection_struct. + * Version 44 - Add 'have_proc_fds' flag to struct files_struct. */ #define SMB_VFS_INTERFACE_VERSION 44 @@ -389,6 +390,7 @@ typedef struct files_struct { struct { bool is_pathref : 1; /* See below */ bool is_fsa : 1; /* See below */ + bool have_proc_fds : 1; bool kernel_share_modes_taken : 1; bool update_write_time_triggered : 1; bool update_write_time_on_close : 1;