/* Version 41 - Remove "blocking_lock" parameter from
SMB_VFS_BRL_LOCK_WINDOWS */
/* Version 41 - Remove "msg_ctx" parameter from SMB_VFS_BRL_UNLOCK_WINDOWS */
+/* Bump to version 42, Samba 4.12 will ship with that */
+/* Version 42 - Remove share_access member from struct files_struct */
-#define SMB_VFS_INTERFACE_VERSION 41
+#define SMB_VFS_INTERFACE_VERSION 42
/*
All intercepted VFS operations must be declared as static functions inside module source
struct write_cache *wcp;
struct timeval open_time;
uint32_t access_mask; /* NTCreateX access bits (FILE_READ_DATA etc.) */
- uint32_t share_access; /* NTCreateX share constants (FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE). */
-
bool kernel_share_modes_taken;
bool update_write_time_triggered;
fsp->vuid = smb1req->vuid;
fsp->open_time = e->time;
fsp->access_mask = e->access_mask;
- fsp->share_access = e->share_access;
fsp->can_read = ((fsp->access_mask & (FILE_READ_DATA)) != 0);
fsp->can_write = ((fsp->access_mask & (FILE_WRITE_DATA|FILE_APPEND_DATA)) != 0);
fsp->fnum = op->local_id;
to->vuid = from->vuid;
to->open_time = from->open_time;
to->access_mask = access_mask;
- to->share_access = share_access;
to->oplock_type = from->oplock_type;
to->can_lock = from->can_lock;
to->can_read = ((access_mask & FILE_READ_DATA) != 0);
}
fsp->file_id = vfs_file_id_from_sbuf(conn, &smb_fname->st);
- fsp->share_access = share_access;
fsp->fh->private_options = private_flags;
fsp->access_mask = open_access_mask; /* We change this to the
* requested access_mask after
lck,
oplock_request,
lease,
- fsp->share_access,
+ share_access,
fsp->access_mask);
if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(lck);
fsp->can_read = False;
fsp->can_write = False;
- fsp->share_access = share_access;
fsp->fh->private_options = 0;
/*
* According to Samba4, SEC_FILE_READ_ATTRIBUTE is always granted,
get_current_uid(conn),
req ? req->mid : 0,
NO_OPLOCK,
- fsp->share_access,
+ share_access,
fsp->access_mask,
NULL,
NULL);