1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/source3/smbd
Joseph Sutton 78ca3e16da smbd/notify: Handle allocation failure
If a talloc function returns NULL, indicating failure, the failure could
be masked by the next talloc call allocating on the NULL context.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
2023-04-12 13:52:31 +00:00
..
notifyd lib;smbd: Fix the -Os build by initializing variables 2021-08-06 17:22:30 +00:00
avahi_register.c
blocking.c s3: smbd: Remove lock_flav argument from smbd_smb1_brl_finish_by_lock(). 2022-01-06 15:11:38 +00:00
close.c smbd: Remove source3/smbd/statcache.c 2022-12-14 22:54:29 +00:00
conn_idle.c s3:rpc_server: Activate samba-dcerpcd 2021-12-10 14:02:30 +00:00
conn_msg.c
conn.c s3/smbd: Use after free when iterating smbd_server_connection->connections 2022-08-17 09:54:06 +00:00
connection.c
dfree.c smbd: Save a few lines with str_list_add_printf() 2022-01-18 20:22:38 +00:00
dir.c smbd: Ensure share root POSIX attrs are cleared after mode_fn 2023-03-31 20:22:38 +00:00
dmapi.c
dnsregister.c
dosmode.c smbd: Use direct struct initialization, avoid explicit ZERO_STRUCT() 2022-12-15 21:52:34 +00:00
durable.c smbd: Pass vfs_open_how through fd_openat 2022-08-06 01:43:50 +00:00
error.c s3: smbd: Rename reply_outbuf() -> reply_smb1_outbuf(). 2022-04-07 17:37:30 +00:00
fake_file.c smbd: Modernize DBG statements in open_fake_file() 2022-08-26 18:54:37 +00:00
fd_handle.c smbd: Remove NTCREATEX_FLAG_DELETE_ON_CLOSE 2022-06-06 19:22:28 +00:00
fd_handle.h smbd: fd_handle.h does not need includes.h 2022-04-26 21:41:29 +00:00
file_access.c smbd: use metadata_fsp() with SMB_VFS_FGET_NT_ACL() 2022-08-10 15:32:35 +00:00
fileio.c smbd: use fdos_mode() in mark_file_modified() 2020-12-16 09:08:31 +00:00
filename.c smbd: Prevent creation of vetoed files 2023-04-06 23:03:50 +00:00
files.c s3: smbd: Tweak openat_pathref_dirfsp_nosymlink() to NULL out fsp->fsp_name after calling fd_close() on intermediate directories, rather than before. 2023-01-13 08:33:47 +00:00
globals.c smbd: Slightly simplify set_current_case_sensitive() 2022-12-14 22:54:29 +00:00
globals.h smbXsrv_tcon: avoid storing temporary (invalid!) records. 2023-04-12 12:48:35 +00:00
mangle_hash2.c smbd: Use ISDOT/ISDOTDOT 2022-02-17 17:13:35 +00:00
mangle_hash.c smbd: Move fast_string_hash() to mangle_hash.c, the only user 2022-01-05 00:11:37 +00:00
mangle.c
msdfs.c smbd: squash check_path_syntax() variants 2023-03-31 21:21:57 +00:00
notify_fam.c
notify_inotify.c smbd: Align two integer types 2020-11-04 18:55:39 +00:00
notify_msg.c notifyd: Factor out notify_walk() into its own file 2020-10-24 05:57:31 +00:00
notify.c smbd/notify: Handle allocation failure 2023-04-12 13:52:31 +00:00
ntquotas.c
open.c s3: smbd: Fix log spam. Change a normal error message from DBG_ERR (level 0) to DBG_INFO (level 5). 2023-02-11 08:48:05 +00:00
oplock_linux.c lib;smbd: Fix the -Os build by initializing variables 2021-08-06 17:22:30 +00:00
password.c
perfcount.c
posix_acls.c posix_acls: Don't skip ACEs in merge_default_aces() 2023-04-12 13:52:31 +00:00
proto.h smbd: squash check_path_syntax() variants 2023-03-31 21:21:57 +00:00
pysmbd.c pysmbd: Fix typo in error message 2023-04-12 13:52:31 +00:00
quotas.c
scavenger.c smbd: remove process shortname arg from smbd_reinit_after_fork() 2022-12-14 01:38:29 +00:00
scavenger.h
seal.c
sec_ctx.c sec_ctx.c: Fix -Wunused-function warning on macOS 2021-10-13 01:42:35 +00:00
server_exit.c smbd: remove process shortname arg from reinit_after_fork() 2022-12-14 01:38:29 +00:00
server_reload.c smbd: Remove source3/smbd/statcache.c 2022-12-14 22:54:29 +00:00
server.c smbd: Remove source3/smbd/statcache.c 2022-12-14 22:54:29 +00:00
session.c
share_access.c Revert "s3:smbd: Remove NIS support" 2022-06-09 21:45:28 +00:00
smb1_aio.c s3: smbd: Rename construct_reply_common_req() -> construct_smb1_reply_common_req() 2022-04-07 17:37:30 +00:00
smb1_aio.h smbd: Move schedule_aio_write_and_X to smb1_aio.c 2022-04-07 17:37:29 +00:00
smb1_ipc.c s3: smbd: Rename init_smb_request() -> init_smb1_request(). 2022-04-07 17:37:30 +00:00
smb1_ipc.h smbd: Move ipc.c -> smb1_ipc.c 2022-04-07 17:37:29 +00:00
smb1_lanman.c smbd: Make get_safe_[[SI]VAL|ptr] static to smb1_lanman.c 2023-01-10 00:28:37 +00:00
smb1_lanman.h smbd: Move lanman.c -> smb1_lanman.c 2022-04-07 17:37:29 +00:00
smb1_message.c smbd: Remove a few "extern userdom_struct current_user_info" 2022-12-12 22:14:20 +00:00
smb1_message.h smbd: Move message.c -> smb1_message.c 2022-04-07 17:37:29 +00:00
smb1_negprot.c lib: Make substitute.c's "remote_proto" static 2022-12-12 21:16:33 +00:00
smb1_negprot.h smbd: Move negprot.c -> smb1_negprot.c 2022-04-07 17:37:29 +00:00
smb1_nttrans.c smbd: use smb1_strip_dfs_path() in reply_ntrename() 2023-03-31 05:12:32 +00:00
smb1_nttrans.h smbd: Remove duplicate read_nttrans_ea_list function prototype 2022-04-07 17:37:30 +00:00
smb1_oplock.c s3: smbd: Rename srv_set_message() -> srv_smb1_set_message(). 2022-04-07 17:37:30 +00:00
smb1_oplock.h smbd: Move send_break_message_smb1 to smb1_oplock.c 2022-04-07 17:37:29 +00:00
smb1_pipes.c s3: smbd: Rename reply_outbuf() -> reply_smb1_outbuf(). 2022-04-07 17:37:30 +00:00
smb1_pipes.h smbd: Move reply_pipe_write to smb1_pipes.c 2022-04-07 17:37:30 +00:00
smb1_process.c smbd: Slightly simplify set_current_case_sensitive() 2022-12-14 22:54:29 +00:00
smb1_process.h smbd: Move valid_smb_header to smb2_process.c 2022-04-07 17:37:30 +00:00
smb1_reply.c smbd: squash check_path_syntax() variants 2023-03-31 21:21:57 +00:00
smb1_reply.h s3: smbd: Move reply_findnclose() from trans2.c to smb1_reply.c 2022-04-07 17:37:30 +00:00
smb1_service.c smbXsrv_tcon: avoid storing temporary (invalid!) records. 2023-04-12 12:48:35 +00:00
smb1_service.h smbd: Move make_connection to smb1_service.c 2022-04-07 17:37:29 +00:00
smb1_sesssetup.c s3: smbd: Rename reply_outbuf() -> reply_smb1_outbuf(). 2022-04-07 17:37:30 +00:00
smb1_sesssetup.h smbd: Move sesssetup.c -> smb1_sesssetup.c 2022-04-07 17:37:29 +00:00
smb1_signing.c smbd: Move signing.c -> smb1_signing.c 2022-04-07 17:37:29 +00:00
smb1_signing.h smbd: Move signing.c -> smb1_signing.c 2022-04-07 17:37:29 +00:00
smb1_trans2.c smbd: use smb1_strip_dfs_path() in call_trans2findfirst() 2023-03-31 05:12:32 +00:00
smb1_trans2.h smbd: Move handling smb_set_posix_lock() to smb1_trans2.c 2023-01-04 08:54:32 +00:00
smb1_utils.c smbd: Move message_push_string() to smb1_utils.c 2022-06-06 19:22:28 +00:00
smb1_utils.h smbd: Move message_push_string() to smb1_utils.c 2022-06-06 19:22:28 +00:00
smb2_aio.c s3: smbd: Fix schedule_smb2_aio_read() to allow the last read in a compound to go async. 2022-12-01 16:04:07 +00:00
smb2_break.c s3: smbd: Correctly set smb2req->smb1req->posix_pathnames from the calling fsp on SMB2 calls. 2023-03-31 20:22:38 +00:00
smb2_close.c s3: smbd: Correctly set smb2req->smb1req->posix_pathnames from the calling fsp on SMB2 calls. 2023-03-31 20:22:38 +00:00
smb2_create.c smbd: Indicate posix pathnames if SMB311 POSX cc requested 2023-04-04 07:04:13 +00:00
smb2_flush.c s3: smbd: Correctly set smb2req->smb1req->posix_pathnames from the calling fsp on SMB2 calls. 2023-03-31 20:22:38 +00:00
smb2_getinfo.c s3: smbd: Correctly set smb2req->smb1req->posix_pathnames from the calling fsp on SMB2 calls. 2023-03-31 20:22:38 +00:00
smb2_glue.c s3: smbd: Correctly set smb2req->smb1req->posix_pathnames from the calling fsp on SMB2 calls. 2023-03-31 20:22:38 +00:00
smb2_ioctl_dfs.c
smb2_ioctl_filesys.c smbd: Save a few lines by using tevent_req_nterror()'s retval 2022-09-07 18:40:28 +00:00
smb2_ioctl_named_pipe.c
smb2_ioctl_network_fs.c vfs: Add flags and xferlen args to SMB_VFS_OFFLOAD_READ_RECV 2021-10-08 19:28:32 +00:00
smb2_ioctl_private.h s3: smbd: Split out smb2_ioctl_smbtorture() into a separate file. 2021-08-11 19:16:29 +00:00
smb2_ioctl_smbtorture.c s3: smbd: Call smbd_fsctl_torture_async_sleep() when we get FSCTL_SMBTORTURE_FSP_ASYNC_SLEEP. 2021-08-11 19:16:29 +00:00
smb2_ioctl.c s3: smbd: Correctly set smb2req->smb1req->posix_pathnames from the calling fsp on SMB2 calls. 2023-03-31 20:22:38 +00:00
smb2_ipc.c smbd: Move nt_status_np_pipe to smb2_ipc.c 2022-04-07 17:37:29 +00:00
smb2_keepalive.c
smb2_lock.c s3: smbd: Correctly set smb2req->smb1req->posix_pathnames from the calling fsp on SMB2 calls. 2023-03-31 20:22:38 +00:00
smb2_negprot.c lib: Make substitute.c's "remote_proto" static 2022-12-12 21:16:33 +00:00
smb2_notify.c s3: smbd: Correctly set smb2req->smb1req->posix_pathnames from the calling fsp on SMB2 calls. 2023-03-31 20:22:38 +00:00
smb2_nttrans.c s3: smbd: Add src_dirfsp and dst_dirfsp parameters to copy_internals(). 2022-08-02 19:49:32 +00:00
smb2_oplock.c s3:smbd: remove static from release_file_oplock() 2022-09-20 00:34:35 +00:00
smb2_pipes.c smbd: Move reply_pipe_write to smb1_pipes.c 2022-04-07 17:37:30 +00:00
smb2_posix.c s3: smbd: store_smb2_posix_info hide info for '..' 2022-11-29 10:26:38 +00:00
smb2_process.c s3: smbd: Rename init_smb_request() -> init_smb1_request(). 2022-04-07 17:37:30 +00:00
smb2_query_directory.c s3: smbd: Correctly set smb2req->smb1req->posix_pathnames from the calling fsp on SMB2 calls. 2023-03-31 20:22:38 +00:00
smb2_read.c s3: smbd: Correctly set smb2req->smb1req->posix_pathnames from the calling fsp on SMB2 calls. 2023-03-31 20:22:38 +00:00
smb2_reply.c smbd: squash check_path_syntax() variants 2023-03-31 21:21:57 +00:00
smb2_server.c smbd: Pass error_context_count through smbd_smb2_request_error_ex() 2022-11-22 18:27:33 +00:00
smb2_service.c smbXsrv_tcon: avoid storing temporary (invalid!) records. 2023-04-12 12:48:35 +00:00
smb2_sesssetup.c smbd: Save a few lines by using tevent_req_nterror()'s retval 2022-09-07 18:40:28 +00:00
smb2_setinfo.c s3: smbd: Correctly set smb2req->smb1req->posix_pathnames from the calling fsp on SMB2 calls. 2023-03-31 20:22:38 +00:00
smb2_signing.c smbd: Disable call to smb1_srv_init_signing without smb1 2022-04-07 17:37:29 +00:00
smb2_tcon.c smbXsrv_tcon: avoid storing temporary (invalid!) records. 2023-04-12 12:48:35 +00:00
smb2_trans2.c smbd: squash check_path_syntax() variants 2023-03-31 21:21:57 +00:00
smb2_write.c s3: smbd: Correctly set smb2req->smb1req->posix_pathnames from the calling fsp on SMB2 calls. 2023-03-31 20:22:38 +00:00
smbd_cleanupd.c
smbd_cleanupd.h
smbd.h smbd: Hide the SMB1 posix symlink behaviour behind UCF_LCOMP_LNK_OK 2022-12-22 19:50:34 +00:00
smbXsrv_client.c lib: Use tdb_data_dbg() where appropriate 2023-01-10 00:28:37 +00:00
smbXsrv_open.c smbd: Fix a typo 2023-03-09 18:10:33 +00:00
smbXsrv_open.h smbd: Remove smbXsrv_open_global0->db_rec 2023-02-13 10:49:43 +00:00
smbXsrv_session.c lib: Use tdb_data_dbg() where appropriate 2023-01-10 00:28:37 +00:00
smbXsrv_tcon.c smbXsrv_tcon: avoid storing temporary (invalid!) records. 2023-04-12 12:48:35 +00:00
smbXsrv_version.c
srvstr.c smbd: Move message_push_string() to smb1_utils.c 2022-06-06 19:22:28 +00:00
statvfs.c smbd: Fix the build on FreeBSD 2022-08-04 20:44:32 +00:00
uid.c source3: move lib/substitute.c functions out of proto.h 2021-11-11 13:49:32 +00:00
utmp.c
vfs.c s3:smbd: add helpers to deny vfs calls in some sections 2022-09-20 00:34:35 +00:00