bbaumbach/samba-autobuild/.git
2 years agoconfigure: Add option for disabling the smb1 server
David Mulder [Mon, 7 Mar 2022 17:10:14 +0000 (10:10 -0700)]
configure: Add option for disabling the smb1 server

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agos3: smbd: Rename init_smb_request() -> init_smb1_request().
Jeremy Allison [Tue, 5 Apr 2022 02:55:39 +0000 (19:55 -0700)]
s3: smbd: Rename init_smb_request() -> init_smb1_request().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
2 years agos3: smbd: Rename reply_outbuf() -> reply_smb1_outbuf().
Jeremy Allison [Tue, 5 Apr 2022 02:53:20 +0000 (19:53 -0700)]
s3: smbd: Rename reply_outbuf() -> reply_smb1_outbuf().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
2 years agos3: smbd: Rename create_outbuf() -> create_smb1_outbuf()
Jeremy Allison [Tue, 5 Apr 2022 01:45:44 +0000 (18:45 -0700)]
s3: smbd: Rename create_outbuf() -> create_smb1_outbuf()

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
2 years agos3: smbd: Rename construct_reply_common_req() -> construct_smb1_reply_common_req()
Jeremy Allison [Tue, 5 Apr 2022 01:43:54 +0000 (18:43 -0700)]
s3: smbd: Rename construct_reply_common_req() -> construct_smb1_reply_common_req()

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
2 years agos3: smbd: Rename construct_reply_common() -> construct_smb1_reply_common().
Jeremy Allison [Tue, 5 Apr 2022 01:42:02 +0000 (18:42 -0700)]
s3: smbd: Rename construct_reply_common() -> construct_smb1_reply_common().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
2 years agos3: smbd: Rename srv_set_message() -> srv_smb1_set_message().
Jeremy Allison [Tue, 5 Apr 2022 01:40:11 +0000 (18:40 -0700)]
s3: smbd: Rename srv_set_message() -> srv_smb1_set_message().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
2 years agos3: smbd: Rename valid_smb_header() -> valid_smb1_header()
Jeremy Allison [Tue, 5 Apr 2022 01:35:16 +0000 (18:35 -0700)]
s3: smbd: Rename valid_smb_header() -> valid_smb1_header()

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
2 years agosmbd: Remove srv_send_smb
David Mulder [Thu, 31 Mar 2022 19:09:57 +0000 (13:09 -0600)]
smbd: Remove srv_send_smb

Signed-off-by: David Mulder <dmulder@suse.com>
Signed-off-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Remove uses of srv_send_smb
David Mulder [Thu, 31 Mar 2022 19:09:13 +0000 (13:09 -0600)]
smbd: Remove uses of srv_send_smb

Replace them with direct calls to smb1_srv_send
and smb2_srv_send.

Signed-off-by: David Mulder <dmulder@suse.com>
Signed-off-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move reply_pipe_write to smb1_pipes.c
David Mulder [Thu, 31 Mar 2022 17:37:25 +0000 (11:37 -0600)]
smbd: Move reply_pipe_write to smb1_pipes.c

Signed-off-by: David Mulder <dmulder@suse.com>
Signed-off-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Process error reply if SMB1 negprot parsing fails
David Mulder [Wed, 30 Mar 2022 08:57:21 +0000 (02:57 -0600)]
smbd: Process error reply if SMB1 negprot parsing fails

Signed-off-by: David Mulder <dmulder@suse.com>
Signed-off-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Enable multi-protocol negotiate w/out SMB1
David Mulder [Wed, 23 Mar 2022 12:43:40 +0000 (06:43 -0600)]
smbd: Enable multi-protocol negotiate w/out SMB1

This enables the multi-protocol negotiate when
the SMB1 build is disabled. It requires enabling
parts of the SMB1 negotiation.

Signed-off-by: David Mulder <dmulder@suse.com>
Signed-off-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move init_smb_request to smb2_process.c
David Mulder [Fri, 25 Mar 2022 20:08:18 +0000 (14:08 -0600)]
smbd: Move init_smb_request to smb2_process.c

init_smb_request is needed for a multi-protocol
negotiation.

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move valid_smb_header to smb2_process.c
David Mulder [Fri, 25 Mar 2022 19:59:14 +0000 (13:59 -0600)]
smbd: Move valid_smb_header to smb2_process.c

valid_smb_header is needed for a multi-protocol
negotiation.

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Disable use of smb_fn_name when SMB1 is disabled
David Mulder [Mon, 21 Mar 2022 20:23:15 +0000 (14:23 -0600)]
smbd: Disable use of smb_fn_name when SMB1 is disabled

perfcount_test.c was using the smb_fn_name
function, which doesn't exist when SMB1 is
disabled.

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Remove duplicate read_nttrans_ea_list function prototype
David Mulder [Mon, 21 Mar 2022 20:18:58 +0000 (14:18 -0600)]
smbd: Remove duplicate read_nttrans_ea_list function prototype

Because this stray prototype was mixed in with
the smb1 code, it caused the smb2-only build to
fail. Instead of duplicating the function
prototype, lets just include the correct header.

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Disable SMB_SET_POSIX_LOCK when SMB1 is disabled
David Mulder [Mon, 21 Mar 2022 20:11:04 +0000 (14:11 -0600)]
smbd: Disable SMB_SET_POSIX_LOCK when SMB1 is disabled

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Disable SMB_QUERY_CIFS_UNIX_INFO when SMB1 is disable
David Mulder [Mon, 21 Mar 2022 20:10:24 +0000 (14:10 -0600)]
smbd: Disable SMB_QUERY_CIFS_UNIX_INFO when SMB1 is disable

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Disable use of smb_fn_name without SMB1 in error.c
David Mulder [Mon, 21 Mar 2022 19:50:08 +0000 (13:50 -0600)]
smbd: Disable use of smb_fn_name without SMB1 in error.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agotorture: Disable vfs chain test dependant on SMB1
David Mulder [Thu, 10 Mar 2022 21:54:35 +0000 (14:54 -0700)]
torture: Disable vfs chain test dependant on SMB1

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move trans2.c -> smb2_trans2.c
David Mulder [Mon, 21 Mar 2022 19:26:09 +0000 (13:26 -0600)]
smbd: Move trans2.c -> smb2_trans2.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agos3: smbd: Move reply_findnclose() from trans2.c to smb1_reply.c
Jeremy Allison [Tue, 5 Apr 2022 02:50:58 +0000 (19:50 -0700)]
s3: smbd: Move reply_findnclose() from trans2.c to smb1_reply.c

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
2 years agos3: smbd: Move reply_findclose() from trans2.c to smb1_reply.c
Jeremy Allison [Tue, 5 Apr 2022 02:48:25 +0000 (19:48 -0700)]
s3: smbd: Move reply_findclose() from trans2.c to smb1_reply.c

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
2 years agosmbd: Move reply_transs2 to smb1_trans2.c
David Mulder [Mon, 21 Mar 2022 19:15:19 +0000 (13:15 -0600)]
smbd: Move reply_transs2 to smb1_trans2.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move reply_trans2 to smb1_trans2.c
David Mulder [Mon, 21 Mar 2022 18:29:26 +0000 (12:29 -0600)]
smbd: Move reply_trans2 to smb1_trans2.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move smb_set_posix_lock to smb1_trans2.c
David Mulder [Mon, 21 Mar 2022 17:59:15 +0000 (11:59 -0600)]
smbd: Move smb_set_posix_lock to smb1_trans2.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move send_trans2_replies to smb1_trans2.c
David Mulder [Mon, 21 Mar 2022 17:51:41 +0000 (11:51 -0600)]
smbd: Move send_trans2_replies to smb1_trans2.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move smb1_utils.h include to smbd.h
David Mulder [Mon, 21 Mar 2022 15:56:04 +0000 (09:56 -0600)]
smbd: Move smb1_utils.h include to smbd.h

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move process.c -> smb1_process.c
David Mulder [Mon, 21 Mar 2022 14:30:48 +0000 (08:30 -0600)]
smbd: Move process.c -> smb1_process.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move smbd_process to smb2_process.c
David Mulder [Mon, 21 Mar 2022 14:05:15 +0000 (08:05 -0600)]
smbd: Move smbd_process to smb2_process.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Disable smb1 in smbd_process
David Mulder [Fri, 18 Mar 2022 21:44:10 +0000 (15:44 -0600)]
smbd: Disable smb1 in smbd_process

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move smbd_add_connection to smb2_process.c
David Mulder [Fri, 18 Mar 2022 21:37:17 +0000 (15:37 -0600)]
smbd: Move smbd_add_connection to smb2_process.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Disable smb1 in smbd_smb2_server_connection_read_handler
David Mulder [Fri, 18 Mar 2022 21:29:56 +0000 (15:29 -0600)]
smbd: Disable smb1 in smbd_smb2_server_connection_read_handler

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Disable smb1 in smbd_server_connection_handler
David Mulder [Fri, 18 Mar 2022 21:26:27 +0000 (15:26 -0600)]
smbd: Disable smb1 in smbd_server_connection_handler

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Disable smb1 in smbd_add_connection
David Mulder [Fri, 18 Mar 2022 21:17:39 +0000 (15:17 -0600)]
smbd: Disable smb1 in smbd_add_connection

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move smbXsrv_connection_dbg to smb2_process.c
David Mulder [Fri, 18 Mar 2022 21:13:25 +0000 (15:13 -0600)]
smbd: Move smbXsrv_connection_dbg to smb2_process.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move smbXsrv_connection_init_tables to smb2_process.c
David Mulder [Fri, 18 Mar 2022 21:10:01 +0000 (15:10 -0600)]
smbd: Move smbXsrv_connection_init_tables to smb2_process.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Disable smb1 in smbXsrv_connection_init_tables
David Mulder [Fri, 18 Mar 2022 21:05:27 +0000 (15:05 -0600)]
smbd: Disable smb1 in smbXsrv_connection_init_tables

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move process_smb to smb2_process.c
David Mulder [Fri, 18 Mar 2022 20:53:19 +0000 (14:53 -0600)]
smbd: Move process_smb to smb2_process.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move reply_outbuf and construct_reply_common_req to smb2_process.c
David Mulder [Fri, 18 Mar 2022 20:45:09 +0000 (14:45 -0600)]
smbd: Move reply_outbuf and construct_reply_common_req to smb2_process.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move push_deferred_open_message_smb to smb2_process.c
David Mulder [Fri, 18 Mar 2022 20:28:08 +0000 (14:28 -0600)]
smbd: Move push_deferred_open_message_smb to smb2_process.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Separate smb1 code from push_deferred_open_message_smb
David Mulder [Fri, 18 Mar 2022 20:22:27 +0000 (14:22 -0600)]
smbd: Separate smb1 code from push_deferred_open_message_smb

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move get_deferred_open_message_state to smb2_process.c
David Mulder [Fri, 18 Mar 2022 20:15:30 +0000 (14:15 -0600)]
smbd: Move get_deferred_open_message_state to smb2_process.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move open_was_deferred to smb2_process.c
David Mulder [Fri, 18 Mar 2022 20:08:12 +0000 (14:08 -0600)]
smbd: Move open_was_deferred to smb2_process.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move schedule_deferred_open_message_smb to smb2_process.c
David Mulder [Fri, 18 Mar 2022 19:35:41 +0000 (13:35 -0600)]
smbd: Move schedule_deferred_open_message_smb to smb2_process.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move remove_deferred_open_message_smb to smb2_process.c
David Mulder [Fri, 18 Mar 2022 18:28:19 +0000 (12:28 -0600)]
smbd: Move remove_deferred_open_message_smb to smb2_process.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move receive_smb_talloc/smb2_receive_talloc to smb2_process.c
David Mulder [Fri, 18 Mar 2022 15:41:02 +0000 (09:41 -0600)]
smbd: Move receive_smb_talloc/smb2_receive_talloc to smb2_process.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Split receive_smb_talloc into smb1_receive_talloc/smb2_receive_talloc
David Mulder [Fri, 18 Mar 2022 15:22:21 +0000 (09:22 -0600)]
smbd: Split receive_smb_talloc into smb1_receive_talloc/smb2_receive_talloc

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move read_packet_remainder to smb2_process.c
David Mulder [Thu, 17 Mar 2022 21:29:18 +0000 (15:29 -0600)]
smbd: Move read_packet_remainder to smb2_process.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move srv_set_message to smb2_process.c
David Mulder [Thu, 17 Mar 2022 21:23:33 +0000 (15:23 -0600)]
smbd: Move srv_set_message to smb2_process.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move srv_send_smb/smb2_srv_send to smb2_process.c
David Mulder [Fri, 18 Mar 2022 14:22:31 +0000 (08:22 -0600)]
smbd: Move srv_send_smb/smb2_srv_send to smb2_process.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Split srv_send_smb into smb1_srv_send/smb2_srv_send
David Mulder [Fri, 18 Mar 2022 14:13:43 +0000 (08:13 -0600)]
smbd: Split srv_send_smb into smb1_srv_send/smb2_srv_send

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Split process_smb() into process_smb1() and process_smb2()
David Mulder [Thu, 10 Mar 2022 20:09:06 +0000 (13:09 -0700)]
smbd: Split process_smb() into process_smb1() and process_smb2()

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move signing.c -> smb1_signing.c
David Mulder [Thu, 17 Mar 2022 20:54:01 +0000 (14:54 -0600)]
smbd: Move signing.c -> smb1_signing.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Disable call to smb1_srv_init_signing without smb1
David Mulder [Thu, 17 Mar 2022 20:29:41 +0000 (14:29 -0600)]
smbd: Disable call to smb1_srv_init_signing without smb1

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move srv_init_signing to smb2_signing.c
David Mulder [Thu, 17 Mar 2022 20:28:10 +0000 (14:28 -0600)]
smbd: Move srv_init_signing to smb2_signing.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move smb2_srv_init_signing to smb2_signing.c
David Mulder [Thu, 17 Mar 2022 19:55:25 +0000 (13:55 -0600)]
smbd: Move smb2_srv_init_signing to smb2_signing.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move service.c -> smb2_service.c
David Mulder [Thu, 17 Mar 2022 19:35:44 +0000 (13:35 -0600)]
smbd: Move service.c -> smb2_service.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move make_connection to smb1_service.c
David Mulder [Thu, 17 Mar 2022 19:32:30 +0000 (13:32 -0600)]
smbd: Move make_connection to smb1_service.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Disable call to smb1_srv_is_signing_active without smb1
David Mulder [Thu, 17 Mar 2022 19:21:32 +0000 (13:21 -0600)]
smbd: Disable call to smb1_srv_is_signing_active without smb1

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move reply.c -> smb1_reply.c
David Mulder [Thu, 17 Mar 2022 18:59:22 +0000 (12:59 -0600)]
smbd: Move reply.c -> smb1_reply.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move smbd_do_unlocking to smb2_reply.c
David Mulder [Thu, 17 Mar 2022 18:29:42 +0000 (12:29 -0600)]
smbd: Move smbd_do_unlocking to smb2_reply.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move get_lock_offset to smb2_reply.c
David Mulder [Thu, 17 Mar 2022 18:20:30 +0000 (12:20 -0600)]
smbd: Move get_lock_offset to smb2_reply.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move copy_file to smb2_reply.c
David Mulder [Thu, 17 Mar 2022 17:34:46 +0000 (11:34 -0600)]
smbd: Move copy_file to smb2_reply.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move rename_internals to smb2_reply.c
David Mulder [Thu, 17 Mar 2022 17:30:25 +0000 (11:30 -0600)]
smbd: Move rename_internals to smb2_reply.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move rename_internals_fsp to smb2_reply.c
David Mulder [Thu, 17 Mar 2022 17:25:05 +0000 (11:25 -0600)]
smbd: Move rename_internals_fsp to smb2_reply.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move sendfile_short_send to smb2_reply.c
David Mulder [Thu, 17 Mar 2022 17:18:26 +0000 (11:18 -0600)]
smbd: Move sendfile_short_send to smb2_reply.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move fake_sendfile to smb2_reply.c
David Mulder [Thu, 17 Mar 2022 17:15:23 +0000 (11:15 -0600)]
smbd: Move fake_sendfile to smb2_reply.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move unlink_internals to smb2_reply.c
David Mulder [Thu, 17 Mar 2022 17:10:51 +0000 (11:10 -0600)]
smbd: Move unlink_internals to smb2_reply.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move reply_special to smb2_reply.c
David Mulder [Thu, 17 Mar 2022 17:04:28 +0000 (11:04 -0600)]
smbd: Move reply_special to smb2_reply.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move check_fsp_ntquota_handle to smb2_reply.c
David Mulder [Thu, 17 Mar 2022 16:57:04 +0000 (10:57 -0600)]
smbd: Move check_fsp_ntquota_handle to smb2_reply.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: move check_fsp to smb2_reply.c
David Mulder [Thu, 17 Mar 2022 16:53:35 +0000 (10:53 -0600)]
smbd: move check_fsp to smb2_reply.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move check_fsp_open to smb2_reply.c
David Mulder [Thu, 17 Mar 2022 16:51:59 +0000 (10:51 -0600)]
smbd: Move check_fsp_open to smb2_reply.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move srvstr_pull_req_talloc to smb2_reply.c
David Mulder [Thu, 17 Mar 2022 16:45:00 +0000 (10:45 -0600)]
smbd: Move srvstr_pull_req_talloc to smb2_reply.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move srvstr_get_path* to smb2_reply.c
David Mulder [Tue, 15 Mar 2022 22:32:34 +0000 (16:32 -0600)]
smbd: Move srvstr_get_path* to smb2_reply.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move check_path_syntax* to smb2_reply.c
David Mulder [Tue, 15 Mar 2022 22:29:59 +0000 (16:29 -0600)]
smbd: Move check_path_syntax* to smb2_reply.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move pipes.c -> smb2_pipes.c
David Mulder [Tue, 15 Mar 2022 21:13:52 +0000 (15:13 -0600)]
smbd: Move pipes.c -> smb2_pipes.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move reply_pipe_read_and_X to smb1_pipes.c
David Mulder [Tue, 15 Mar 2022 21:00:05 +0000 (15:00 -0600)]
smbd: Move reply_pipe_read_and_X to smb1_pipes.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move reply_pipe_write_and_X to smb1_pipes.c
David Mulder [Tue, 15 Mar 2022 20:55:38 +0000 (14:55 -0600)]
smbd: Move reply_pipe_write_and_X to smb1_pipes.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move reply_open_pipe_and_X to smb1_pipes.c
David Mulder [Tue, 15 Mar 2022 20:50:16 +0000 (14:50 -0600)]
smbd: Move reply_open_pipe_and_X to smb1_pipes.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move oplock.c -> smb2_oplock.c
David Mulder [Tue, 15 Mar 2022 20:53:18 +0000 (14:53 -0600)]
smbd: Move oplock.c -> smb2_oplock.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Disable smb1 oplock calls when smb1 is disabled
David Mulder [Tue, 15 Mar 2022 20:38:03 +0000 (14:38 -0600)]
smbd: Disable smb1 oplock calls when smb1 is disabled

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move send_break_message_smb1 to smb1_oplock.c
David Mulder [Tue, 15 Mar 2022 20:36:06 +0000 (14:36 -0600)]
smbd: Move send_break_message_smb1 to smb1_oplock.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move new_break_message_smb1 to smb1_oplock.c
David Mulder [Tue, 15 Mar 2022 20:32:08 +0000 (14:32 -0600)]
smbd: Move new_break_message_smb1 to smb1_oplock.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move nttrans.c -> smb1_nttrans.c
David Mulder [Fri, 11 Mar 2022 19:20:52 +0000 (12:20 -0700)]
smbd: Move nttrans.c -> smb1_nttrans.c

nttrans.c now contians only smb1 code

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move smbd_do_query_getinfo_quota to smb2_nttrans.c
David Mulder [Fri, 11 Mar 2022 19:16:49 +0000 (12:16 -0700)]
smbd: Move smbd_do_query_getinfo_quota to smb2_nttrans.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move smbd_do_query_security_desc to smb2_nttrans.c
David Mulder [Fri, 11 Mar 2022 19:10:56 +0000 (12:10 -0700)]
smbd: Move smbd_do_query_security_desc to smb2_nttrans.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move copy_internals to smb2_nttrans.c
David Mulder [Fri, 11 Mar 2022 19:06:38 +0000 (12:06 -0700)]
smbd: Move copy_internals to smb2_nttrans.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move set_sd_blob to smb2_nttrans.c
David Mulder [Fri, 11 Mar 2022 18:21:40 +0000 (11:21 -0700)]
smbd: Move set_sd_blob to smb2_nttrans.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move set_sd to smb2_nttrans.c
David Mulder [Fri, 11 Mar 2022 18:16:18 +0000 (11:16 -0700)]
smbd: Move set_sd to smb2_nttrans.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move negprot.c -> smb1_negprot.c
David Mulder [Fri, 11 Mar 2022 17:20:48 +0000 (10:20 -0700)]
smbd: Move negprot.c -> smb1_negprot.c

negprot.c only contains smb1 code.

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: negprot_spnego allow disabling smb1 spnego set
David Mulder [Fri, 11 Mar 2022 17:43:16 +0000 (10:43 -0700)]
smbd: negprot_spnego allow disabling smb1 spnego set

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move negprot_spnego to smb2_negprot.c
David Mulder [Fri, 11 Mar 2022 17:18:04 +0000 (10:18 -0700)]
smbd: Move negprot_spnego to smb2_negprot.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move ipc.c -> smb1_ipc.c
David Mulder [Fri, 11 Mar 2022 16:57:57 +0000 (09:57 -0700)]
smbd: Move ipc.c -> smb1_ipc.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move nt_status_np_pipe to smb2_ipc.c
David Mulder [Fri, 11 Mar 2022 16:53:04 +0000 (09:53 -0700)]
smbd: Move nt_status_np_pipe to smb2_ipc.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move aio.c -> smb2_aio.c
David Mulder [Fri, 11 Mar 2022 16:47:04 +0000 (09:47 -0700)]
smbd: Move aio.c -> smb2_aio.c

aio.c now contians only smb2 code

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move schedule_aio_write_and_X to smb1_aio.c
David Mulder [Fri, 11 Mar 2022 16:21:35 +0000 (09:21 -0700)]
smbd: Move schedule_aio_write_and_X to smb1_aio.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Move schedule_aio_read_and_X to smb1_aio.c
David Mulder [Fri, 11 Mar 2022 16:17:59 +0000 (09:17 -0700)]
smbd: Move schedule_aio_read_and_X to smb1_aio.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2 years agosmbd: Allow disabling SMB1 in struct smbXsrv_connection
David Mulder [Thu, 10 Mar 2022 21:22:39 +0000 (14:22 -0700)]
smbd: Allow disabling SMB1 in struct smbXsrv_connection

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>