]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs: add struct connection_struct flag "have_proc_fds"
authorRalph Boehme <slow@samba.org>
Wed, 25 Nov 2020 04:32:19 +0000 (05:32 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:30 +0000 (09:08 +0000)
Allows the VFS layer to tell the higher layers if fds opened by the openat() VFS
implementation are visible objects inside a /proc/PID/fd/FD filesystem.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/vfs.h

index 63f0f9519e72c220f831d0195cb4805da89427ec..3a0b77fc928b327f6288fc294286ce2771bf2f28 100644 (file)
  *              prevents that encrypted connections can be downgraded.
  * 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.
  */
 
 #define SMB_VFS_INTERFACE_VERSION 44
@@ -674,6 +675,7 @@ typedef struct connection_struct {
        bool printer;
        bool ipc;
        bool read_only; /* Attributes for the current user of the share. */
+       bool have_proc_fds;
        uint32_t share_access;
        /* Does this filesystem honor
           sub second timestamps on files