1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/smbd
Jeremy Allison bcba550228 s3: smbd: Add new function check_path_syntax_smb2_msdfs() for SMB2 MSDFS paths.
#ifdef'ed out as static and not yet used.

We can't just call check_path_syntax() on these as
they are of the form hostname\share[\extrapath]
(where [\extrapath] is optional).

hostname here can be an IPv6 ':' separated address,
which check_path_syntax() fails on due to the streamname
processing.

NB. This also has to cope with out existing (broken)
libsmbclient libraries that sometimes set the DFS
flag and then send a local pathname. Cope by just
calling the normal check_path_syntax() on the
whole pathname in that case.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15144

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2022-08-12 18:19:30 +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 s3: smbd: Cleanup - Make rmdir_internals() use NTSTATUS internally without depending on errno. 2022-03-04 18:39:48 +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: Factor out setting up case parameters for a share to a function - conn_setup_case_options(). 2021-01-13 17:02:34 +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: use metadata_fsp() with SMB_VFS_FGET_NT_ACL() 2022-08-10 15:32:35 +00:00
dmapi.c
dnsregister.c
dosmode.c smbd: ignore request to set the SPARSE attribute on streams 2022-08-10 15:32:35 +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: Move the call to file_free() out of close_fake_file() 2022-02-10 18:16:36 +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 s3: smbd: Remove ugly SMB1-specific hack to filename_convert_dirfsp() 2022-08-05 10:24:22 +00:00
files.c smbd: Hand vfs_open_how to openat_pathref_fullname 2022-08-06 01:43:50 +00:00
globals.c smbd: let smbd_request_guid() use smb1req->xconn->channel_id 2021-03-06 02:20:05 +00:00
globals.h configure: Add option for disabling the smb1 server 2022-04-07 17:37:30 +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 s3: smbd: Oops. DBG_ERR messages I used to debug parse_dfs_path(), should have been DBG_DEBUG. 2022-08-08 09:07:24 +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 s3: smbd: notify_mid_maps is used by both SMB1 and SMB2. 2022-03-08 22:12:37 +00:00
ntquotas.c
open.c smbd: avoid calling SMB_VFS_FGET_NT_ACL() if do_not_check_mask already covers all 2022-08-11 18:28:36 +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 smbd: use metadata_fsp() in get_acl_group_bits() 2022-08-10 15:32:35 +00:00
proto.h smbd: Pass vfs_open_how through fd_openat 2022-08-06 01:43:50 +00:00
pysmbd.c smbd: use metadata_fsp() with SMB_VFS_FSET_NT_ACL() 2022-08-10 15:32:35 +00:00
quotas.c
scavenger.c smbd: Give smbXsrv_open.c its own header file 2021-11-11 19:08:37 +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 s3:rpc_server: Activate samba-dcerpcd 2021-12-10 14:02:30 +00:00
server_reload.c smbd: check lp_load_printers before reload via NetShareEnum 2021-11-08 13:27:40 +00:00
server.c s3/smbd: stdin fstat failure is a failure 2022-06-17 01:28:30 +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: Move lanman.c -> smb1_lanman.c 2022-04-07 17:37:29 +00:00
smb1_lanman.h smbd: Move lanman.c -> smb1_lanman.c 2022-04-07 17:37:29 +00:00
smb1_message.c s3: smbd: Rename reply_outbuf() -> reply_smb1_outbuf(). 2022-04-07 17:37:30 +00:00
smb1_message.h smbd: Move message.c -> smb1_message.c 2022-04-07 17:37:29 +00:00
smb1_negprot.c s3: smbd: Rename reply_outbuf() -> reply_smb1_outbuf(). 2022-04-07 17:37:30 +00:00
smb1_negprot.h smbd: Move negprot.c -> smb1_negprot.c 2022-04-07 17:37:29 +00:00
smb1_nttrans.c s3: smbd: Remove the ucf_flags parameter from extract_snapshot_token(). 2022-08-05 09:24:30 +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: Fix CID 1504457 Resource leak 2022-06-06 19:22:28 +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 s3: smbd: Remove the ucf_flags parameter from extract_snapshot_token(). 2022-08-05 09:24:30 +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 smbd: Move make_connection to smb1_service.c 2022-04-07 17:37:29 +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 s3: smbd: Remove the ucf_flags parameter from extract_snapshot_token(). 2022-08-05 09:24:30 +00:00
smb1_trans2.h smbd: Move reply_transs2 to smb1_trans2.c 2022-04-07 17:37:30 +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 smbd: Move aio.c -> smb2_aio.c 2022-04-07 17:37:29 +00:00
smb2_break.c
smb2_close.c smbd: optimize and streamline smbd_smb2_close() 2022-05-02 19:13:31 +00:00
smb2_create.c s3: smbd: Convert smbd_smb2_create_durable_lease_check() to use filename_convert_dirfsp(). 2022-08-02 19:49:32 +00:00
smb2_flush.c smbd: use fsp_get_io_fd() when accessing a file or it's associated metadata 2020-12-16 09:08:30 +00:00
smb2_getinfo.c s3: smbd: smbd_smb2_getinfo_send(). All calls to SMB_VFS_FSTAT(fsp, &fsp->fsp_name->st) clobber fsp->fsp_name->st.st_ex_iflags. 2022-03-24 16:28:37 +00:00
smb2_glue.c
smb2_ioctl_dfs.c
smb2_ioctl_filesys.c s3: smbd: Move implicit call to lp_posix_cifsu_locktype() out of init_strict_lock_struct(). 2022-01-06 15:11:38 +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 smb2_ioctl: return BUFFER_TOO_SMALL in smbd_smb2_request_ioctl_done() 2021-12-01 11:04:29 +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: Plumb in POSIX lock requests through SMB2 lock calls if done on a POSIX handle. Currently not allowed. 2022-02-01 16:30:37 +00:00
smb2_negprot.c smbd: Fix a "set but not used" warning 2022-08-04 21:46:23 +00:00
smb2_notify.c
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 smbd: Move oplock.c -> smb2_oplock.c 2022-04-07 17:37:29 +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: Add two new functions in a new file, smb2_posix.c: smb2_posix_cc_info(), store_smb2_posix_info() 2022-02-01 17:25:45 +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 smbd: Pass vfs_open_how through fd_openat 2022-08-06 01:43:50 +00:00
smb2_read.c smbd: Introduce fsp_is_alternate_stream() 2022-02-11 20:54:37 +00:00
smb2_reply.c s3: smbd: Add new function check_path_syntax_smb2_msdfs() for SMB2 MSDFS paths. 2022-08-12 18:19:30 +00:00
smb2_server.c smbd: Introduce fsp_is_alternate_stream() 2022-02-11 20:54:37 +00:00
smb2_service.c smbd: Bypass the vfs_gethandle data for default share IPC$ 2022-07-22 05:27:53 +00:00
smb2_sesssetup.c source3: move lib/substitute.c functions out of proto.h 2021-11-11 13:49:32 +00:00
smb2_setinfo.c smbd: Remove NTCREATEX_FLAG_DELETE_ON_CLOSE 2022-06-06 19:22:28 +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 smb2_tcon: also try to cancel pending compound requests on tdis 2021-03-29 20:43:28 +00:00
smb2_trans2.c s3: smbd: Remove the ucf_flags parameter from extract_snapshot_token(). 2022-08-05 09:24:30 +00:00
smb2_write.c smbd: Use fsp_is_alternate_stream() where an fsp is available 2022-02-11 20:54:37 +00:00
smbd_cleanupd.c
smbd_cleanupd.h
smbd.h smbd: Move send_trans2_replies to smb1_trans2.c 2022-04-07 17:37:30 +00:00
smbXsrv_client.c s3:smbXsrv_client: only change the dbwrap_watch instance when the record has changed 2022-07-26 13:40:34 +00:00
smbXsrv_open.c smbd: Give smbXsrv_open.c its own header file 2021-11-11 19:08:37 +00:00
smbXsrv_open.h smbd: Give smbXsrv_open.c its own header file 2021-11-11 19:08:37 +00:00
smbXsrv_session.c s3:smbXsrv_session: only change the dbwrap_watch instance when the record has changed 2022-07-26 13:40:34 +00:00
smbXsrv_tcon.c smbXsrv_{open,session,tcon}: protect smbXsrv_{open,session,tcon}_global_traverse_fn against invalid records 2021-07-06 11:08:43 +00:00
smbXsrv_version.c
srvstr.c smbd: Move message_push_string() to smb1_utils.c 2022-06-06 19:22:28 +00:00
statcache.c smbd: Fix a typo 2022-03-01 20:09:29 +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 vfs: change openat propotype to match linux openat2 2022-08-06 01:43:50 +00:00