Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-04-07 | Start to plumb smb2 into the oplock system. Calls dummy functions for now. | Jeremy Allison | 1 | -0/+6 | |
Jeremy. | |||||
2010-04-01 | Move initialize_async_io_handler() inside of smbd/aio.c. | Jeremy Allison | 1 | -3/+0 | |
Call from actual aio read or write. No reason to call this globally on startup. Jeremy. | |||||
2010-03-31 | Make smbd_lock_socket/smbd_unlock_socket recursive with a ref_count. | Jeremy Allison | 1 | -40/+38 | |
As these always call exit_server, make that part of the function. Use _internal functions for the echo client. Metze please check ! Jeremy. | |||||
2010-03-31 | s3:smbd: handle SMB2 in deadtime_fn() and avoid disconnecting non idle clients | Stefan Metzmacher | 1 | -1/+13 | |
metze | |||||
2010-03-22 | s3: Implement an asynchronous echo responder process | Volker Lendecke | 1 | -19/+478 | |
This replies to echo requests when the main smbd is stuck somewhere Signed-off-by: Stefan Metzmacher <metze@samba.org> | |||||
2010-03-22 | s3:smbd: don't allow SMB2 if the async echo handler is active | Stefan Metzmacher | 1 | -1/+2 | |
metze | |||||
2010-03-22 | s3:smbd: don't use recvfile if the echo handler is active | Stefan Metzmacher | 1 | -1/+2 | |
metze | |||||
2010-03-22 | s3:smbd: pass down trusted_channel via receive_smb_talloc() | Stefan Metzmacher | 1 | -3/+5 | |
metze | |||||
2010-03-22 | s3:smbd: send keepalive packets under the socket lock | Stefan Metzmacher | 1 | -1/+16 | |
metze | |||||
2010-03-22 | s3:smbd: smbd_[un]lock_socket() while accessing the socket to the client | Stefan Metzmacher | 1 | -1/+24 | |
metze | |||||
2010-03-22 | s3:smbd: add smbd_[un]lock_socket() dummies | Stefan Metzmacher | 1 | -0/+10 | |
metze | |||||
2010-03-22 | s3:smbd: add an option to skip signings checks srv_check_sign_mac for ↵ | Stefan Metzmacher | 1 | -1/+1 | |
trusted channels metze | |||||
2010-03-11 | s3: Make init_smb_request return bool | Volker Lendecke | 1 | -5/+10 | |
Centralize the exit_server_cleanly() | |||||
2010-03-09 | s3: Fix a NULL pointer dereference | Volker Lendecke | 1 | -1/+10 | |
Found by Laurent Gaffie <laurent.gaffie@gmail.com>. Thanks! Volker | |||||
2010-01-23 | s3: Fix some nonempty blank lines | Volker Lendecke | 1 | -3/+3 | |
2010-01-21 | s3: Initialize the seqnum in "init_smb_request" | Volker Lendecke | 1 | -4/+4 | |
This makes it a bit more obvious for me that the signing sequence number is tied to the SMB request. | |||||
2010-01-21 | s3: Make "init_smb_request" static to process.c | Volker Lendecke | 1 | -4/+2 | |
2009-12-22 | s3: Move smb_splice_chain to smbd/process.c, its only user | Volker Lendecke | 1 | -0/+174 | |
2009-12-21 | Rename reply_doserror() -> reply_force_doserror(). | Jeremy Allison | 1 | -2/+2 | |
Rewrite all calls to reply_nterror(NT_STATUS_DOS()) to reply_force_doserror() and update the comment in smbd/error.c Jeremy. | |||||
2009-12-21 | Remove all calls to reply_doserror - turn them into | Jeremy Allison | 1 | -4/+4 | |
correct reply_nterror calls. Next rename reply_doserror -> reply_force_doserror and plumb in when NT_STATUS_DOS is used. Jeremy. | |||||
2009-11-26 | s3-smbd: no drsuapi server stubs yet in s3. Fixes the build, sorry. | Günther Deschner | 1 | -1/+0 | |
Guenther | |||||
2009-11-26 | s3-rpc: Avoid including every pipe's client and server stubs everywhere in ↵ | Günther Deschner | 1 | -0/+15 | |
samba. Guenther | |||||
2009-11-23 | Revert "s3: Move the global variable Protocol to struct smbd_server_connection" | Volker Lendecke | 1 | -1/+0 | |
This reverts commit c85a4c9ba4a7de65a7850f6f9708df66bd24deea. | |||||
2009-11-21 | s3: Move the global variable Protocol to struct smbd_server_connection | Volker Lendecke | 1 | -0/+1 | |
2009-10-01 | Fix for CVE-2009-2906. | Jeremy Allison | 1 | -5/+25 | |
Summary: Specially crafted SMB requests on authenticated SMB connections can send smbd into a 100% CPU loop, causing a DoS on the Samba server. | |||||
2009-09-24 | s3 onefs: Add some debugging/asserts to give more info when there is bad ↵ | Zack Kirsch | 1 | -0/+2 | |
deferred open state. Signed-off-by: Tim Prouty <tprouty@samba.org> | |||||
2009-09-06 | Fix bug 6673 - smbpasswd does not work with "unix password sync = yes". | Jeremy Allison | 1 | -2/+2 | |
Revert change from 3.3 -> 3.4 with read_socket_with_timeout changed from sys_read() to sys_recv(). read_socket_with_timeout() is called with non-fd's (with a pty in chgpasswd.c and with a disk file in lib/dbwrap_file.c via read_data()). recv works for the disk file, but not the pty. Change the name of read_socket_with_timeout() to read_fd_with_timeout() to make this clear (and add comments). Jeremy. | |||||
2009-08-07 | s3:smbd: move dptr globals into struct smbd_server_connection | Stefan Metzmacher | 1 | -0/+3 | |
metze | |||||
2009-07-27 | Fix a valgrind error in chain_reply | Volker Lendecke | 1 | -3/+10 | |
construct_reply() references the request after chain_reply has freed it. | |||||
2009-07-24 | In chain_reply, copy the subrequests' error to the main request | Volker Lendecke | 1 | -0/+15 | |
2009-07-17 | Move the initialization of smbd_server_conn from smbd/process, | Jeremy Allison | 1 | -5/+0 | |
after the accept and fork, to smbd_init_globals(), so it's done immediately on server startup. This is needed as some messages are sent to all active smbd processes (including the master listening daemon). If it gets a message that forces it to scan it's current connections (ie. conn_find()) then it discovers that sconn->smb1.tcons.Connections dereferences null (as sconn == NULL in the parent) and crashes. Yes, I could fix all cases where sconn is used and explicitly check for NULL but this fix is easier. It means that the smbd_event_context() is initialized in the master daemon and then re-initialized after fork, but that should be being done correctly in every fork call anyway. Without this change the previous fix 6a9e0039100b57f9626e87defec6720c476b9789 still panics in the reproducible test case for bug 6564, as this is one case where such a message (MSG_SMB_CONF_UPDATED) is sent to the parent. Metze please check. This change passes valgrind. Jeremy. | |||||
2009-07-14 | Revert this commit : | Jeremy Allison | 1 | -56/+2 | |
s3: Make smbd aware of permission change of usershare. Since usershare are relatively volatile and non-previledge users must disconnect from smbd and reconnect to it to make share permission in effect. For now. This is a feature request and I think we need to design it a little differently so as not to touch core change_to_user() code. Jeremy. | |||||
2009-07-15 | s3: Make smbd aware of permission change of usershare. Since usershare are ↵ | Bo Yang | 1 | -2/+56 | |
relatively volatile and non-previledge users must disconnect from smbd and reconnect to it to make share permission in effect. | |||||
2009-06-22 | s3: forward MSG_DEBUG from smbd parent to all children | Aravind Srinivasan | 1 | -0/+9 | |
Before 3.3, an smbcontrol debug message sent to the target "smbd" would actually be sent to all running processes including nmbd and winbindd. This behavior was changed in 3.3 so that the "smbd" target would only send a message to the process found in smbd.pid, while the "all" target would send a message to all processes. The ability to set the debug level of all processes within a single daemon, without specifying each pid is quite useful. This was implemented in winbindd in 065760ed. This patch does the same thing for smbd. Upon receiving a MSG_DEBUG the parent smbd will rebroadcast it to all of its children. The printing process has been added to the list of smbd child processes, and we now always track the number of smbd children regardless of the "max smbd processes" setting. | |||||
2009-06-03 | s3:smbd: move tcon specific globals to struct smbd_server_connection | Stefan Metzmacher | 1 | -3/+7 | |
metze | |||||
2009-06-03 | s3:smbd: move more session specific globals to struct smbd_server_connection | Stefan Metzmacher | 1 | -1/+12 | |
metze | |||||
2009-06-03 | s3:smbd: move some session specific globals to struct smbd_server_connection | Stefan Metzmacher | 1 | -2/+7 | |
metze | |||||
2009-06-03 | s3:smbd: move already_got_session to struct smbd_server_connection | Stefan Metzmacher | 1 | -0/+2 | |
metze | |||||
2009-06-03 | s3:smbd: move max_recv to struct smbd_server_connection | Stefan Metzmacher | 1 | -1/+1 | |
metze | |||||
2009-06-03 | s3:smbd: allow SMB2 only if we don't use security = share | Stefan Metzmacher | 1 | -1/+2 | |
metze | |||||
2009-05-26 | s3:smbd: move SMB1 specific stuff into a substructure of smbd_server_connection | Stefan Metzmacher | 1 | -9/+9 | |
metze | |||||
2009-05-20 | s3:smbd: add infrastructure for SMB2 support | Stefan Metzmacher | 1 | -0/+12 | |
This is disabled by default and activated by "max protocol = SMB2". metze | |||||
2009-05-08 | s3: Fix chained sesssetupAndX/tconn messages | Tim Prouty | 1 | -0/+7 | |
A sesssetupAndX chained with a tconn will not correctly set the TID in the response header. I'm seeing an XP client send this chained sesssetup/tconn when samba has security = share. Samba's current behavior is to return a TID of 0 in the smb header rather than the actual TID. This patch also updates the UID in the header as well. | |||||
2009-05-08 | s3:smbd: fix the fix for mapped IPv4 address handling in release_ip(). | Michael Adam | 1 | -2/+2 | |
It was too late... Thanks Metze for noticing. Michael | |||||
2009-05-08 | s3: make release_ip() call (ctdb) cope with IPv4 mapped addresses | Michael Adam | 1 | -1/+8 | |
Michael | |||||
2009-04-12 | write_data already guarantees everything was written | Volker Lendecke | 1 | -9/+6 | |
2009-03-23 | s3:smbd: use new simplified snb_signing code in the server | Stefan Metzmacher | 1 | -15/+35 | |
We keep the seqnum/mid mapping in the smb_request structure. This also moves one global variable into the smbd_server_connection struct. metze | |||||
2009-03-23 | s3:smbd: if we allow trans2 on the IPC$ share, then we have to allow transs2 ↵ | Stefan Metzmacher | 1 | -1/+1 | |
too. Otherwise we'll confuse the client signing engine, when we reply an error to each transs2. metze | |||||
2009-02-16 | make receive_smb_raw_talloc more readable | Tim Prouty | 1 | -4/+4 | |
2009-02-13 | Noted by Vericode analysis. Correctly use chroot(). | Jeremy Allison | 1 | -1/+5 | |
Jeremy. |