1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/smbd
Volker Lendecke 305ea37c81 smbd: Get "req->request_time" early in create_file_default()
This is necessary for the following case:

We want to delete a file with an open stream that is not open with
FILE_SHARE_DELETE. In SMB1, we need to defer the sharing violation
reply (we don't do that right now, test to follow). However, when we
move that sharing violation delay to where it belongs, into the outer
layers, only very deep in the nested open_streams_for_delete smb1
sharing violation delay handling call we will hit the sharing
violation in the 1-second retry case. However, that
open_streams_for_delete itself is INTERNAL_OPEN_ONLY and thus not
deferred itself. This means that it will not overwrite
req->request_time at all.

Exec summary: We only have one request_time now, set it properly as
early as possible.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2019-08-07 23:45:50 +00:00
..
notifyd notifyd: Fix SIGBUS on sparc 2019-02-22 12:30:10 +01:00
aio.c Revert "smbd: add an effective {smb,smbd_smb2}_request->ev_ctx that holds the event context used for the request processing" 2019-01-11 23:11:16 +01:00
avahi_register.c s3-smbd: use fruit:model string for mDNS registration 2019-01-15 21:27:20 +01:00
blocking.c smbd: Remove unused "msg_ctx" from smbd_smb1_do_locks_send() 2019-07-02 17:01:28 +00:00
close.c smbd: Make remove_oplock_under_lock static 2019-08-06 21:49:29 +00:00
conn_idle.c s3: smbd: All directory enumeration is now via file handles - remove unneeded code in idle connections. 2019-08-06 14:23:34 +00:00
conn_msg.c
conn.c Revert "smbd: add an effective connection_struct->user_ev_ctx that holds the event context used for the current user" 2019-01-11 23:11:16 +01:00
connection.c smbd: Remove some unused includes 2019-04-11 23:35:15 +00:00
dfree.c s3: smbd: Convert dfree code to use file_lines_ploadv(). 2019-05-24 19:00:05 +00:00
dir.c s3: smbd: inline dptr_close_internal() 2019-08-06 14:23:36 +00:00
dmapi.c
dnsregister.c
dosmode.c s3:smbd: Fix sync dosmode fallback in async dosmode codepath 2019-08-06 15:40:18 +00:00
durable.c smbd: Remove "share_access" from files_struct 2019-08-06 21:49:29 +00:00
error.c
fake_file.c
file_access.c
fileio.c smbd: Use a struct initializer 2019-05-03 22:34:16 +00:00
filename.c smbd: Simplify filename_convert_internal() 2019-07-02 18:17:39 +00:00
files.c smbd: Move fsp_client_guid() to locking/ 2019-08-06 21:49:29 +00:00
globals.c
globals.h s3: smbd: globals - remove dirhandles_open from internal search struct. 2019-07-09 23:12:17 +00:00
ipc.c Revert "smbd: add an effective {smb,smbd_smb2}_request->ev_ctx that holds the event context used for the request processing" 2019-01-11 23:11:16 +01:00
lanman.c s3:smbd: Use C99 initializer for RAP api_commands 2019-01-28 10:29:23 +01:00
mangle_hash2.c
mangle_hash.c
mangle.c
message.c Avoid NULL pointer dereference in SMBsendend handler 2019-03-12 00:42:19 +00:00
msdfs.c Revert "smbd: add smbd_server_connection->raw_ev_ctx pointer" 2019-01-11 23:11:19 +01:00
negprot.c s3/smbd: Server responds incorrectly if no SMB protocol chosen 2018-09-28 08:30:22 +02:00
notify_fam.c
notify_inotify.c
notify_msg.c smbd: remove unused tevent_context argument from notify_init 2018-06-18 08:59:18 +02:00
notify.c smbd: Only remove locks by mid if necessary 2019-06-20 17:18:16 +00:00
ntquotas.c ntquotas: do not set inode limits when setting space quota 2019-02-17 13:33:12 +01:00
nttrans.c smbd: Cancel smbd_smb1_do_locks requests in reply_ntcancel 2019-06-20 17:18:19 +00:00
open.c smbd: Get "req->request_time" early in create_file_default() 2019-08-07 23:45:50 +00:00
oplock_linux.c Revert "smbd: explain that/why we use the raw tevent_context for linux_oplock_signal_handler()" 2019-01-11 23:11:17 +01:00
oplock.c smbd: Inline remove_oplock_under_lock() into its only caller 2019-08-06 21:49:30 +00:00
password.c s3:smbd: Make sure we do not export "/" (root) as home dir 2018-12-05 01:38:14 +01:00
perfcount.c
pipes.c Revert "smbd: add an effective {smb,smbd_smb2}_request->ev_ctx that holds the event context used for the request processing" 2019-01-11 23:11:16 +01:00
posix_acls.c s3: smbd: Posix ACLs. Now we know we have a handle, always use VFS_FCHMOD instead of VFS_CHMOD. 2019-06-24 18:49:10 +00:00
process.c smbd: Enhance debugging in push_deferred_open_message_smb() 2019-08-06 21:49:29 +00:00
proto.h smbd: Make remove_oplock_under_lock static 2019-08-06 21:49:29 +00:00
pysmbd.c s3/smbd/py: avoid null deref with bad python arguments 2019-07-22 22:20:26 +00:00
quotas.c quotas: remove legacy AIX quota code that is covered by sysquotas now 2019-02-17 13:33:14 +01:00
reply.c smbd: Slightly optimize reply_open_and_X() 2019-08-06 21:49:29 +00:00
scavenger.c
scavenger.h
seal.c
sec_ctx.c
server_exit.c smbd: Fix use-after-free from exit_server_common() 2019-08-01 15:39:12 +00:00
server_reload.c smbd: remove useless set_current_service(NULL,0,True) from reload_services() 2018-06-18 08:59:17 +02:00
server.c s3:rpc_server: Return NTSTATUS in rpc_ep_setup and setup functions 2019-07-22 16:49:14 +00:00
service.c s3: smbd: Remove call to dptr_closecnum() on connection shutdown. 2019-08-06 14:23:35 +00:00
session.c s3:smbd: fix SAFE_FREE() vs. TALLOC_FREE() in list_sessions() 2019-03-28 23:09:33 +00:00
sesssetup.c s3:smbd: Start to use the smb2_signing_key structure 2019-04-30 23:18:28 +00:00
share_access.c
signing.c s3:smbd: Return NTSTATUS for srv_calculate_sign_mac() 2019-05-21 00:03:22 +00:00
smb1_utils.c smbd: Remove "share_access" from fcb_or_dos_open() 2019-08-06 21:49:29 +00:00
smb1_utils.h smbd: Remove "share_access" from fcb_or_dos_open() 2019-08-06 21:49:29 +00:00
smb2_break.c Revert "smbd: add an effective {smb,smbd_smb2}_request->ev_ctx that holds the event context used for the request processing" 2019-01-11 23:11:16 +01:00
smb2_close.c smbd: Base smb2_lock.c on tevent_req 2019-06-20 17:18:19 +00:00
smb2_create.c s3:vfs: move get_fs_file_id to vfs_default 2019-07-01 21:43:24 +00:00
smb2_flush.c Revert "smbd: add an effective {smb,smbd_smb2}_request->ev_ctx that holds the event context used for the request processing" 2019-01-11 23:11:16 +01:00
smb2_getinfo.c s3: smbd: Plumb through struct smb_request *req parameter so it can be used by smb_query_posix_acl(). 2019-06-24 18:49:09 +00:00
smb2_glue.c Revert "smbd: add an effective {smb,smbd_smb2}_request->ev_ctx that holds the event context used for the request processing" 2019-01-11 23:11:16 +01:00
smb2_ioctl_dfs.c
smb2_ioctl_filesys.c
smb2_ioctl_named_pipe.c Revert "smbd: add an effective {smb,smbd_smb2}_request->ev_ctx that holds the event context used for the request processing" 2019-01-11 23:11:16 +01:00
smb2_ioctl_network_fs.c smb2_ioctl_network_fs: remove unused fsctl_srv_copychunk_state->aapl_copyfile 2019-03-28 23:09:34 +00:00
smb2_ioctl_private.h
smb2_ioctl.c Revert "smbd: add an effective {smb,smbd_smb2}_request->ev_ctx that holds the event context used for the request processing" 2019-01-11 23:11:16 +01:00
smb2_keepalive.c
smb2_lock.c smbd: Remove unused "msg_ctx" from smbd_do_locks_try() 2019-07-02 17:01:28 +00:00
smb2_negprot.c libcli: Pass buf/len to smb2_negotiate_context_add 2019-02-25 21:07:22 +01:00
smb2_notify.c s3:smbd: fix max_buffer handling of initial notify requests 2019-03-29 00:35:39 +00:00
smb2_query_directory.c s3: smbd: remove redundant smb_dname arg from dptr_create() 2019-08-06 14:23:36 +00:00
smb2_read.c Revert "smbd: add an effective {smb,smbd_smb2}_request->ev_ctx that holds the event context used for the request processing" 2019-01-11 23:11:16 +01:00
smb2_server.c lib/crypto: move gnutls error wrapper to own subsystem 2019-06-27 12:54:22 +00:00
smb2_sesssetup.c lib/crypto: move gnutls error wrapper to own subsystem 2019-06-27 12:54:22 +00:00
smb2_setinfo.c smbd: Simplify smbd_smb2_setinfo_send() 2019-07-08 16:22:37 +00:00
smb2_tcon.c smb2_tcon: avoid STATUS_PENDING completely on tdis 2019-03-28 23:09:35 +00:00
smb2_write.c s3:smb2_write: add missing initialization of state->in_offset 2019-03-28 23:09:33 +00:00
smbd_cleanupd.c smbd: Remove unused brlock code 2019-06-20 17:18:19 +00:00
smbd_cleanupd.h
smbd.h
smbXsrv_client.c smbd: Replace some GUID_string by GUID_buf_string 2018-10-25 17:58:24 +02:00
smbXsrv_open.c lib: Pass mem_ctx to lock_path() 2018-08-17 11:30:10 +02:00
smbXsrv_session.c s3: Rename server_messaging_context() to global_messaging_context() 2018-09-07 17:26:17 +02:00
smbXsrv_tcon.c s3:smbd: reorder tcon global record deletion and closing files of a tcon 2018-08-31 22:22:23 +02:00
smbXsrv_version.c lib: Pass mem_ctx to lock_path() 2018-08-17 11:30:10 +02:00
srvstr.c
statcache.c s3: Don't copy back the stat struct from stat_cache_lookup if we did not get a hit on the full path. 2018-09-19 17:52:13 +02:00
statvfs.c statvfs: rename linux_statvfs to posix_statvfs 2019-01-11 02:53:57 +01:00
trans2.c smbd: Remove "share_access" from fcb_or_dos_open() 2019-08-06 21:49:29 +00:00
uid.c smbd: uid: Don't crash if 'force group' is added to an existing share connection. 2019-01-25 16:31:27 +01:00
utmp.c s3/smbd: fix utmp hostname logging on Solaris 2019-01-10 22:46:11 +01:00
vfs.c s3:vfs: add SMB_VFS_FS_FILE_ID() 2019-07-01 21:43:24 +00:00