summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
* s3:smbd:smb2: change smbXsrv_tcon0 to smbXsrv_tcon in ↵Michael Adam2012-07-031-1/+1
| | | | | | | smbd_smb2_request_check_tcon() smbXsrv_tcon0 is the internal name for the (current) version0 of the structure. Externally, only smbXsrv_tcon should be used.
* s3:smbd:smb2: change smbXsrv_session0 to smbXsrv_session in struct user_struct.Michael Adam2012-07-031-1/+1
| | | | | smbXsrv_session0 is the internal name of (current) version 0 of the structure. Externally, only smbXsrv_session should be used.
* Don't allow asynchronous creates to be canceled in SMB2.Jeremy Allison2012-06-303-3/+20
| | | | | Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Jun 30 04:10:02 CEST 2012 on sn-devel-104
* Make schedule_deferred_open_message_smb() return an indication of success.Jeremy Allison2012-06-302-5/+6
|
* Make schedule_deferred_open_message_smb2() return an indication of success.Jeremy Allison2012-06-302-7/+9
|
* Allow for async opens.Jeremy Allison2012-06-301-4/+35
| | | | | If the SMB_VFS_OPEN() function returns -1, EINTR -> NT_STATUS_RETRY, then queue the open up to be completed when the async open completes.
* Add new bool field async_open to struct deferred_open_record. Not used yet.Jeremy Allison2012-06-301-0/+4
|
* Fix defer_open() fuction in the open code path to cope with a NULL lck ↵Jeremy Allison2012-06-301-11/+16
| | | | parameter.
* Add uint64_t mid field to the files_struct.Jeremy Allison2012-06-301-0/+1
| | | | Ensure it is initialized so we know what mid created this file.
* s3:smbd: make use of smbXsrv_open for smb1/2/3Stefan Metzmacher2012-06-299-141/+73
| | | | | | | | | | | | This makes sure we generate unique persistent file ids, which are stored in smbXsrv_open_global.tdb. Pair-Programmed-With: Michael Adam <obnox@samba.org> metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jun 29 21:01:11 CEST 2012 on sn-devel-104
* s3:smbd: add smbXsrv_open* infrastructureStefan Metzmacher2012-06-293-0/+1099
| | | | | | Pair-Programmed-With: Michael Adam <obnox@samba.org> metze
* s3: fix the logic in bsd_statvfsBjörn Jacke2012-06-291-1/+1
|
* s3:smb2_server: remove max_charge check in ↵Stefan Metzmacher2012-06-291-16/+0
| | | | | | | | | | smbd_smb2_request_verify_creditcharge() The client can send any credit charge value, it's ok to send more than needed. metze Signed-off-by: Michael Adam <obnox@samba.org>
* s3: merge bsd_statvfs and darwin_statvfsBjörn Jacke2012-06-291-53/+31
|
* Replace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls.Jeremy Allison2012-06-281-1/+2
| | | | | | Will allow thread-specific credentials to be added by modifying the central definitions. Deliberately left the setXX[ug]id() call in popt as this is not used in Samba.
* s3:smb2_server: make the logic in smbd_smb2_request_verify_creditcharge() ↵Stefan Metzmacher2012-06-291-11/+23
| | | | | | | | | simpler We just need a max_charge variable to make the algorithm independent of multi_credit support. metze
* s3:smb2_server: simplify smbd_smb2_request_verify_creditcharge() a bit.Stefan Metzmacher2012-06-291-6/+1
| | | | | | | A credit charge of 0 is really not a special case, it just means the same as 1. metze
* s3:smb2_negprot: support SMB2_CAP_LARGE_MTU on everything but port 139Stefan Metzmacher2012-06-291-5/+8
| | | | | | | In future we'll have other transports like RDMA. This makes NBT (tcp port 139) special instead of port 445. metze
* s3:smb2_server: grant extra credits for multi-credit requestsStefan Metzmacher2012-06-291-2/+10
| | | | metze
* s3:smb2_server: implement credit granting similar to windowsStefan Metzmacher2012-06-292-19/+53
| | | | | | This makes it much easier to compare traces. metze
* s3:smb2_server: make sure sequence numbers don't wrap at UINT64_MAXStefan Metzmacher2012-06-291-2/+17
| | | | metze
* s3:smb2_server: make sure we don't grant more credits than we allowStefan Metzmacher2012-06-292-35/+92
| | | | | | | | | If the client hasn't consumed the lowest seqnum, but the distance between lowest and highest seqnum has reached max credits. In that case we should stop granting credits. metze
* s3:smb2_server: check the credit_charge against the already granted creditsStefan Metzmacher2012-06-291-7/+12
| | | | metze
* s3:smb2_server: split out a smb2_validate_sequence_number() functionStefan Metzmacher2012-06-291-40/+77
| | | | metze
* s3:smb2_server: clear sequence window if we got the lowest sequence idStefan Metzmacher2012-06-291-2/+2
| | | | | | Otherwise we'll never consume sequence id '0'. metze
* s3:smb2_server: fix calculation of the next bitmap_offsetStefan Metzmacher2012-06-291-1/+1
| | | | metze
* s3:smb2_server: remove unused and confusing ↵Stefan Metzmacher2012-06-291-7/+4
| | | | | | DEFAULT_SMB2_MAX_CREDIT_BITMAP_FACTOR metze
* s3:smb2_server: call smbd_smb2_request_validate() also in ↵Stefan Metzmacher2012-06-291-0/+6
| | | | | | | | smbd_smb2_first_negprot() We need to consume message_id 0, for SMB1 negprot starts. metze
* s3:smb2_server: start the connection with one credit granted to the clientStefan Metzmacher2012-06-291-1/+1
| | | | metze
* s3: fine tune and clean up statvfs testsBjörn Jacke2012-06-281-2/+2
| | | | | | | | This should also fix the build on Tru64. Tru64 has a POSIX compliant statvfs() function while most *BSD systems ignore POSIX. Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jun 28 23:07:23 CEST 2012 on sn-devel-104
* s3:smbd: change nt_open_pipe() to uint16_t pnum/fnumStefan Metzmacher2012-06-281-3/+3
| | | | | | | | | This is SMB1 code... metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jun 28 14:47:45 CEST 2012 on sn-devel-104
* s3:smb2_create: add usefull DEBUG() messageStefan Metzmacher2012-06-281-0/+3
| | | | | | | | | | All calls which take an file handle have the same, so we should also log it, when we create a handle. metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jun 28 12:41:49 CEST 2012 on sn-devel-104
* s3:smbd/files: fsp->fnum is uint64_t not int!Stefan Metzmacher2012-06-281-3/+3
| | | | metze
* s3-param: Rename loadparm_s3_context -> loadparm_s3_helpersAndrew Bartlett2012-06-272-2/+2
| | | | | | | | | | | | | | | | | This helps clarify the role of this structure and wrapper function. The purpose here is to provide helper functions to the lib/param loadparm_context that point back at the s3 lp_ functions. This allows a struct loadparm_context to be passed to any point in the code, and always refer to the correct loadparm system. If this has not been set, the variables loaded in the lib/param code will be returned. As requested by Michael Adam. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jun 27 17:11:16 CEST 2012 on sn-devel-104
* s3: Restore async i/o with the "native" AIO interfaceVolker Lendecke2012-06-262-4/+1
| | | | | | | | | | | | | eff3609 moved the async signal handler initialization to later in the process to enable aio_fork and aio_pthread on platforms without realtime signals. This commit broke the use of the native aio interface. aio_pending_size is initialized to 0, so aio.c will not allow async i/0 at all if modules do not set that variable correctly. Initialize to 100 right from the start. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Jun 26 14:08:22 CEST 2012 on sn-devel-104
* s3:smbXsrv_tcon: pass max_tcons explicitly for smbXsrv_tcon_table_init()Stefan Metzmacher2012-06-261-9/+24
| | | | metze
* s3:smbXsrv_session: pass max_sessions explicitly for ↵Stefan Metzmacher2012-06-261-9/+24
| | | | | | smbXsrv_session_table_init() metze
* s3:smb2_sesssetup: make use of smb2srv_session_close_previous_send/recvStefan Metzmacher2012-06-251-0/+66
| | | | metze
* s3:smbXsrv_session: react on MSG_SMBXSRV_SESSION_CLOSEStefan Metzmacher2012-06-251-0/+154
| | | | metze
* s3:smbXsrv_session: add smb2srv_session_close_previous_send/recvStefan Metzmacher2012-06-252-0/+208
| | | | metze
* s3:smb2_sesssetup: inline gensec_session_info() callStefan Metzmacher2012-06-251-25/+15
| | | | metze
* s3:smb2_sesssetup: make use of gensec_update_send/recvStefan Metzmacher2012-06-251-10/+35
| | | | metze
* s3:smb2_sesssetup: inline most of smbd_smb2_session_setup()Stefan Metzmacher2012-06-251-130/+99
| | | | metze
* s3:smbd/sesssetup: implement dynamic re-authentication and expire session if ↵Stefan Metzmacher2012-06-252-12/+113
| | | | | | client supports it metze
* s3:smb2_sesssetup: implement dynamic re-authentication and expire sessionsStefan Metzmacher2012-06-252-6/+129
| | | | metze
* s3:smbd: remove now unused invalidate_all_vuids()Stefan Metzmacher2012-06-252-10/+0
| | | | | | Pair-Programmed-With: Michael Adam <obnox@samba.org> metze
* s3:smbd: remove now unused conn_close_all()Michael Adam2012-06-252-16/+0
| | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:smbd: use smbXsrv_session_logoff_all() and smb1srv_tcon_disconnect_all() ↵Michael Adam2012-06-251-4/+32
| | | | | | | | in exit_server_common() This removes the use of conn_close_all() and invalidate_all_vuids() Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:smbd: make use of smbXsrv_session for smb1Stefan Metzmacher2012-06-256-274/+194
| | | | | | Pair-Programmed-With: Michael Adam <obnox@samba.org> metze
* s3:smbd: make use of smbXsrv_tcon for smb1Stefan Metzmacher2012-06-258-168/+182
| | | | | | Pair-Programmed-With: Michael Adam <obnox@samba.org> metze