summaryrefslogtreecommitdiffstats
path: root/source3/smbd/process.c
Commit message (Collapse)AuthorAgeFilesLines
* s3: Check for the packet size before accessing itVolker Lendecke2012-01-041-2/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Jan 4 15:16:20 CET 2012 on sn-devel-104
* s3:smbd: pass smbd_server_connection and a snumused function pointer to ↵Stefan Metzmacher2011-12-151-4/+4
| | | | | | reload_services() metze
* s3:smbd: split smb_conf_updated into parent and child versionsStefan Metzmacher2011-12-151-0/+21
| | | | metze
* s3:smbd: split ID_CACHE_* message handling into parent and child partsStefan Metzmacher2011-12-151-0/+111
| | | | metze
* s3:smbd: pass smbd_server_connection to smbd_setup_sig_hup_handler()Stefan Metzmacher2011-12-131-10/+11
| | | | metze
* s3:smbd: pass smbd_server_connection to smbd_setup_sig_term_handler()Stefan Metzmacher2011-12-131-4/+4
| | | | metze
* s3:smbd/oplock: pass smbd_server_connection to init_oplocks()Stefan Metzmacher2011-12-131-1/+1
| | | | metze
* s3:smbd/open: pass smbd_server_connection as private_data to ↵Stefan Metzmacher2011-12-131-1/+1
| | | | | | msg_file_was_renamed() metze
* s3:smbd: register MSG_SMB_FILE_RENAME after the forkStefan Metzmacher2011-12-131-0/+2
| | | | | | | The parent smbd doesn't need to handle this, as it doesn't have any file handles open. metze
* s3:smbd/conn_msg: pass smbd_server_connection as private_data to ↵Stefan Metzmacher2011-12-131-1/+1
| | | | | | msg_force_tdis() metze
* s3: Remove a bunch of calls to procid_self()Volker Lendecke2011-12-121-1/+1
| | | | All callers to messaging_[re]init only used procid_self()
* s3:smbd/clode: pass smbd_server_connection as private_data to msg_close_file()Stefan Metzmacher2011-12-121-1/+1
| | | | metze
* s3:smbd/process: avoid using server_event_context() for the forked echo handlerStefan Metzmacher2011-12-121-3/+3
| | | | metze
* s3:smbd/process: avoid using server_event_context() for ↵Stefan Metzmacher2011-12-121-10/+10
| | | | | | smbd_deferred_open_timer events metze
* s3:smbd: pass down smbd_server_connection via smbd_echo_stateStefan Metzmacher2011-12-121-4/+5
| | | | metze
* s3:smbd: remove references to the global smbd_server_connStefan Metzmacher2011-12-121-2/+2
| | | | metze
* s3:smbd: make struct pending_message_list privateStefan Metzmacher2011-12-121-0/+14
| | | | metze
* s3:smbd: remember the smbd_server_connection on pending_message_listStefan Metzmacher2011-12-121-4/+6
| | | | metze
* s3:smbd: call sub_set_socket_ids() in smbd_process() againStefan Metzmacher2011-12-121-0/+18
| | | | | | | | | This got lost in commit b2511a280aa9449123376fd3cbb495dcd1a87dee. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Dec 12 10:23:44 CET 2011 on sn-devel-104
* s3: Avoid a race with the async echo handlerVolker Lendecke2011-11-101-33/+28
| | | | | | We can not read from the echo handler socket when we have the main socket locked. This leads to the echo responder to lock up sitting in the fcntl lock while the parent wants to read the remainder of a large packet.
* s3:smbd increase a debug levelChristian Ambach2011-11-041-5/+6
| | | | logging disconnected clients with level 1 swamps the logs
* s3:smbd: echo FLAGS2_SMB_SECURITY_SIGNATURES* and the signature field in the ↵Stefan Metzmacher2011-09-141-3/+9
| | | | | | | | reply This matches what windows is doing. metze
* s3: Remove a reference to smbd_server_connVolker Lendecke2011-09-131-2/+3
|
* s3: Pass smbd_server_connection to srv_encrypt_bufferVolker Lendecke2011-08-251-1/+1
|
* s3: Pass smbd_server_connection to srv_decrypt_bufferVolker Lendecke2011-08-251-1/+1
|
* s3: Pass smbd_server_connection to srv_free_enc_bufferVolker Lendecke2011-08-251-2/+2
|
* s3: Pass smbd_server_connection to is_encrypted_packetVolker Lendecke2011-08-251-2/+2
|
* s3: Pass sconn to valid_smb_headerVolker Lendecke2011-08-251-4/+5
|
* s3: Fix bug 8360Volker Lendecke2011-08-141-7/+16
| | | | | | | OS/2 sends an unexpected write&x/read&x chain Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Aug 14 08:48:58 CEST 2011 on sn-devel-104
* s3-printing: Force pcap reload when all readySimo Sorce2011-08-101-1/+1
| | | | | | | This way we are sure the cache is primed properly and messages can be sent to processes if necessary as all messaging has been set up. Signed-off-by: Andreas Schneider <asn@samba.org>
* lib-util: Make useful function a common utility.Simo Sorce2011-08-101-26/+0
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-smbd: Pass tevent context to smbd_server_connection_loop_once().Andreas Schneider2011-08-091-12/+12
| | | | Signed-off-by: Simo Sorce <idra@samba.org>
* s3: Move deferred_open_queue to smbd_server_connectionVolker Lendecke2011-08-021-7/+8
|
* s3: Pass sconn explicitly to get_deferred_open_message_smbVolker Lendecke2011-08-021-4/+6
|
* s3: Pass sconn explicitly to open_was_deferredVolker Lendecke2011-08-021-3/+3
|
* s3: Pass sconn explicitly to schedule_deferred_open_message_smbVolker Lendecke2011-08-021-3/+4
|
* s3: Explicitly pass sconn to remove_deferred_open_message_smbVolker Lendecke2011-08-021-4/+5
|
* s3:smbd - Move printing queue stuffSimo Sorce2011-08-021-2/+2
| | | | | | | | This way we can properly deal with pcap updates in the background queue process if it is enabled (on by default) and not perform these actions in the main smbd process. Signed-off-by: Günther Deschner <gd@samba.org>
* s3: Priorize the async echo responder over the clientVolker Lendecke2011-07-281-4/+15
| | | | | | | | Without this, an active client connection can starve the echo responder. This leads to apparently "lost" SMBs. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Jul 28 18:53:38 CEST 2011 on sn-devel-104
* s3: Remove unused smbd_echo_reader()Volker Lendecke2011-07-281-97/+0
|
* s3: Use smbd_echo_read_send in the async echo handlerVolker Lendecke2011-07-281-6/+68
|
* s3: Add smbd_echo_read_send/recvVolker Lendecke2011-07-281-0/+155
| | | | | Read a SMB packet in the echo responder, giving the parent one second to step in
* s3-auth use auth_user_info not netr_SamInfo3 in auth3_session_infoAndrew Bartlett2011-07-201-1/+1
| | | | | | | | | | | | This makes auth3_session_info identical to auth_session_info The logic to convert the info3 to a struct auth_user_info is essentially moved up the stack from the named pipe proxy in source3/rpc_server to create_local_token(). Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth Use struct auth_user_info_unix for unix_name and sanitized_usernameAndrew Bartlett2011-07-201-2/+2
| | | | | | | | This is closer to the layout of struct auth_session_info in auth.idl Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3:smbd: s/SMBkeepalive/NBSSkeepaliveStefan Metzmacher2011-07-121-2/+2
| | | | metze
* s3:smbd: use PROTOCOL_SMB2_02 instead PROTOCOL_SMB2Stefan Metzmacher2011-07-121-1/+1
| | | | metze
* Fix bug #8293 - SMB2 doesn't rotate the log files often enough.Jeremy Allison2011-07-081-2/+2
| | | | | | | | | | Move the num_requests field out of the smb1 struct into the generic struct smbd_server_connection struct. Use it to count SMB2 requests as well as SMB1 and ensure that check_log_size() is called every 50 SMB2 requests. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Jul 8 01:14:53 CEST 2011 on sn-devel-104
* s3-lib Move event_add_idle() to source3/lib/events.cAndrew Bartlett2011-07-041-80/+0
| | | | | | This allows libauth not to depend on smbd_base. Andrew Bartlett
* s3-smbd: Exit cleanly if we can't create an address string.Andreas Schneider2011-07-041-1/+3
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-smbd: Replace client_id in smbd process.Andreas Schneider2011-07-041-6/+32
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>