summaryrefslogtreecommitdiffstats
path: root/source3/smbd/process.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:smbd: readd START_PROFILE(smbd_idle)/END_PROFILE(smbd_idle)Stefan Metzmacher2012-06-091-0/+15
| | | | metze
* s3:smbd: change user_struct->vuid to uint64_tStefan Metzmacher2012-06-061-1/+1
| | | | | | | | | | Only sconn->smb1.sessions.next_vuid remains as uint16_t, so that we do not generate larger values yet. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jun 6 12:07:33 CEST 2012 on sn-devel-104
* s3:smbd: use 'struct user_struct' instead of typedef'ed 'user_struct'Stefan Metzmacher2012-06-061-1/+1
| | | | metze
* s3-param: Use same function name for "max xmit" as lib/paramAndrew Bartlett2012-05-301-1/+1
| | | | | | Again, this helps with merging the FN_ list. Andrew Bartlett
* s3:smbd: remove global 'smbd_server_conn' !!!Stefan Metzmacher2012-05-241-6/+43
| | | | | | | | | | For now we still use a global 'global_smbXsrv_connection' in order to pass the connection state to exit_server*(). metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu May 24 20:07:20 CEST 2012 on sn-devel-104
* s3:smbd: only call file_init_global() in the parent smbdStefan Metzmacher2012-05-241-0/+4
| | | | metze
* s3:smbd: remove unused var in smbXsrv_connection_init_tables()Stefan Metzmacher2012-05-241-2/+0
| | | | metze
* s3:smbd: introduce struct smbXsrv_connectionStefan Metzmacher2012-05-121-0/+25
| | | | | | | | | This will represent a transport connection for SMB 1 or 2 in the server. smbd_server_connection will slowly be moved to the SMB_VFS layer to satisfy the existing modules, but it will hopefully be protocol independend in future. metze
* build: Remove SMB_F* locking definesAndrew Bartlett2012-04-051-2/+2
|
* s3-smbd: Inline init_modules() into only callerAndrew Bartlett2012-04-031-1/+3
|
* Start to add truncate checks on all uses of strlcpy(). Reading lwnJeremy Allison2012-03-291-1/+3
| | | | | | | has it's uses :-). Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 29 20:48:15 CEST 2012 on sn-devel-104
* lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij2012-03-241-11/+11
| | | | | | | | | The performance of these is minimal (these days) and they can return invalid results when used as part of applications that do not use sys_fork(). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 24 21:55:41 CET 2012 on sn-devel-104
* Fix bug 8823 - source3/smbd/process.c:smb_dump seems to have a memory leak.Jeremy Allison2012-03-221-3/+8
| | | | | | | Based on code from Richard Sharpe. Move to talloc from malloc. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 22 00:20:41 CET 2012 on sn-devel-104
* s3: Add smb_request_doneVolker Lendecke2012-03-101-58/+95
| | | | | | | | | | | This is used to enable async chained command sequences. A synchronous reply_xxx command does not need to take are anymore about and_x chaining. The async commands (pipe r/w at this moment) must do so however. When finished, they must inform the main chain engine that they are finished with a smb_request_done call. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Mar 10 17:14:05 CET 2012 on sn-devel-104
* s3: Remove unused smb_request->doneVolker Lendecke2012-03-101-6/+0
|
* s3: Remove unused smb_request->chain_outbufVolker Lendecke2012-03-101-1/+0
|
* s3: Remove "req_wct_ofs()"Volker Lendecke2012-03-101-19/+0
| | | | This is fixed up in construct_reply_chain
* s3: Fix the read&x offset within a chainVolker Lendecke2012-03-101-0/+32
|
* s3: Remove chain_replyVolker Lendecke2012-03-101-270/+0
| | | | <insert your favourite tombstone ascii art here>
* s3: Replace chain_replyVolker Lendecke2012-03-101-2/+135
| | | | | | | | | | | This is a new implementation of our andx handling code. The old code was quite involved in that it was called from within the reply_ handlers. This leads to pretty complex faking of smb_request structures to give them the same environment, independent of whether they are called directly or from within chain_reply. chain_reply needs to go because it blocks really async handling of chained requests.
* s3: Add a new set of andx chain handling routinesVolker Lendecke2012-03-101-0/+236
| | | | This is in preparation of getting rid of chain_reply.
* s3:smbd: keep 'num_users' and 'users' directly under smbd_server_connectionStefan Metzmacher2012-03-061-6/+1
| | | | | | | The plan is to have users_struct as some kind of low level abstraction for a smb1/smb2 session, that can be used by SMB_VFS modules. metze
* s3: Move a talloc_strdup out of the main code pathVolker Lendecke2012-03-061-15/+31
| | | | | | | This is only used for AS_GUEST requests Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Mar 6 14:29:50 CET 2012 on sn-devel-104
* s3: Move the drain_socket on error to reply_write_and_XVolker Lendecke2012-03-051-9/+0
| | | | | That's the only case where this can happen, so we should not clutter the main code path.
* s3: Remove "size" param from switch_messageVolker Lendecke2012-03-051-3/+3
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Mar 5 15:13:49 CET 2012 on sn-devel-104
* s3: Remove "size" param from smb_dumpVolker Lendecke2012-03-051-4/+5
|
* s3-auth: Remove security=share (depricated since 3.6).Andrew Bartlett2012-03-041-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes security=share, which Samba implemented by matching the per-share password provided by the client in the Tree Connect with a selection of usernames supplied by the client, the smb.conf or guessed from the environment. The rationale for the removal is that for the bulk of security=share users, we just we need a very simple way to run a 'trust the network' Samba server, where users mark shares as guest ok. This is still supported, and the smb.conf options are documented at https://wiki.samba.org/index.php/Public_Samba_Server At the same time, this closes the door on one of the most arcane areas of Samba authentication. Naturally, full user-name/password authentication remain available in security=user and above. This includes documentation updates for username and only user, which now only do a small amount of what they used to do. Andrew Bartlett -------------- / \ / REST \ / IN \ / PEACE \ / \ | SEC_SHARE | | security=share | | | | | | 5 March | | | | 2012 | *| * * * | * _________)/\\_//(\/(/\)/\//\/\///|_)_______
* Add the implementation of check_reduced_name_with_privilege(). Now to plumb intoJeremy Allison2012-02-291-0/+1
| | | | SMB1 requests.
* s3: Fix a const warningVolker Lendecke2012-02-291-1/+1
|
* s3-param: Align lp_{max,min}protocol with lib/param namesAndrew Bartlett2012-02-271-1/+1
| | | | | | | | | | This adds an alisas to ensure that both our loadparm systems know all the names. I would like to move to the 'server ..' name as canonical, and this will be raised on the list. Andrew Bartlett
* s3: Simplify smb_splice_chainVolker Lendecke2012-02-241-16/+13
| | | | | | | | No code change, just remove a {} block left over as the else branch from the previous commit Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Feb 24 18:07:48 CET 2012 on sn-devel-104
* s3: Simplify smb_splice_chainVolker Lendecke2012-02-241-12/+2
| | | | | first_request won't be true anymore, we always splice fully existing records in smbd
* s3: Simplify smb_splice_chainVolker Lendecke2012-02-241-13/+2
| | | | With the last commit, bytes_padding is not set anymore
* s3: Simplify smb_splice_chainVolker Lendecke2012-02-241-7/+1
| | | | | bytes_alignment used to be used in libsmb, which uses different code now
* s3: Simplify smb_splice_chainVolker Lendecke2012-02-241-25/+11
| | | | | | We use it in smbd/process.c only now. This only splices in finished buffers, both callers used the same arguments. Pull that into the routine itself.
* s3: Turn some SMB_ASSERTS into proper returnVolker Lendecke2012-02-241-2/+6
| | | | We deal with the error properly further up
* s3: Fix a DEBUG msgVolker Lendecke2012-02-241-1/+1
|
* s3: smb_request->vwv can be constVolker Lendecke2012-02-231-1/+1
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Feb 23 12:37:23 CET 2012 on sn-devel-104
* Fix a bunch of "unused variable" warnings.Jeremy Allison2012-02-181-3/+0
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 18 06:22:40 CET 2012 on sn-devel-104
* Replace smbd_server_connection_loop_once() with tevent_loop_once() directly.Jeremy Allison2012-02-171-63/+6
| | | | | | | We no longer need to call poll() directly inside smbd ! Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Feb 17 02:49:13 CET 2012 on sn-devel-104
* lib/util: Remove sys_poll as it is no longer neededAndrew Bartlett2012-02-161-1/+1
| | | | | | | | | | | sys_poll() is only needed if the signal pipe is set up and used, but as no signal handler ever writes to the pipe, this can all be removed. signal based events are now handled via tevent. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Move basic SMB checking to a much earlier pointVolker Lendecke2012-01-051-19/+19
|
* s3: Add a suicide mode to smbdVolker Lendecke2012-01-051-0/+11
| | | | | To test our cleanup code paths properly, we need a way to make smbd exit hard without cleaning up
* 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