summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* Add FSCTL_QUERY_ALLOCATED_RANGES to the list of Windows ioctls we support.Jeremy Allison2010-04-051-0/+52
| | | | | | Based on a patch reported and tested by Ira Cooper <samba@ira.wakeful.net>. Jeremy.
* Fix issue with aio where r/w lock wasn't kept across aio read operations.Jeremy Allison2010-04-052-49/+108
| | | | | | | | Change schedule_aio_read_and_X/schedule_aio_write_and_X to return NTSTATUS. Move the grant and release of the lock into the aio code. Jeremy
* Move initialize_async_io_handler() inside of smbd/aio.c.Jeremy Allison2010-04-012-37/+42
| | | | | | Call from actual aio read or write. No reason to call this globally on startup. Jeremy.
* Make smbd_lock_socket/smbd_unlock_socket recursive with a ref_count.Jeremy Allison2010-03-316-56/+68
| | | | | | | | | As these always call exit_server, make that part of the function. Use _internal functions for the echo client. Metze please check ! Jeremy.
* Fix bug 7310 - DOS attribute inconsistency with MS OfficeJeremy Allison2010-03-311-0/+15
| | | | | | On rename we need to set the archive bit on the renamed file. Jeremy
* Merge branch 'master' of ssh://git.samba.org/data/git/sambaJeremy Allison2010-03-311-1/+13
|\
| * s3:smbd: handle SMB2 in deadtime_fn() and avoid disconnecting non idle clientsStefan Metzmacher2010-03-311-1/+13
| | | | | | | | metze
* | Second part of fix for bug #6494 - Incorrect FileStatus returned in ↵Jeremy Allison2010-03-301-1/+19
|/ | | | | | | | NT_CREATE_ANDX. Ensure we do this in nttrans create too. Jeremy.
* Fix for bug #7233 - print fails with jobs >4GB from Win7 clients.Jeremy Allison2010-03-301-4/+12
| | | | | | | Contains for by Sebastian Kloska <oncaphillis@snafu.de>. Submitter confirms this fixes the problem. Jeremy.
* s3: Attempt to fix the build on AIX, shm_ptr seems to be a macro thereVolker Lendecke2010-03-291-5/+6
|
* s3: Use bitmap_talloc for smb1 server tconsVolker Lendecke2010-03-281-3/+3
|
* s3: Use bitmap_talloc in init_dptrsVolker Lendecke2010-03-281-1/+2
|
* s3: Use bitmap_talloc in files.cVolker Lendecke2010-03-281-1/+2
|
* s3: Fix typos in a debug message in vfs_init_customVolker Lendecke2010-03-281-1/+2
|
* Revert the part of bug fix #7233 - print fails with jobs >4GB from Win7 clients.Jeremy Allison2010-03-261-22/+4
| | | | | | | Submitter reports print file corruption after 2GB when SMBwrite etc. always write at EOF. Still working on the fix. Jeremy.
* s3-smbd: Don't close stdout if we want to log to stdout.Andreas Schneider2010-03-261-1/+1
|
* Fix bug 7297 - smbd crashes with CUPS printers and no [printers] share defined.Jeremy Allison2010-03-251-1/+1
| | | | | | Ensure we don't dereference an array with an index of -1. Jeremy.
* s3: Add a comment to notify_internal_parent_init, this is pretty confusingVolker Lendecke2010-03-251-0/+6
|
* s3: Make sure our CLEAR_IF_FIRST optimization works for serverid.tdbVolker Lendecke2010-03-251-0/+4
| | | | | | In the child, we fully re-open serverid.tdb, which leads to one fcntl lock for CLEAR_IF_FIRST detection per smbd. This opens the tdb in the parent and holds it, so that tdb_reopen_all correctly catches the CLEAR_IF_FIRST bit.
* s3: Make sure our CLEAR_IF_FIRST optimization works for the notify tdbsVolker Lendecke2010-03-252-0/+31
| | | | | | The notify tdb files are opened at tconX time, which leads to one fcntl lock for CLEAR_IF_FIRST detection per smbd. This opens the tdbs in the parent and holds it, so that tdb_reopen_all correctly catches the CLEAR_IF_FIRST bit.
* s3: Make sure our CLEAR_IF_FIRST optimization works for messaging.tdbVolker Lendecke2010-03-251-0/+4
| | | | | | In the child, we fully re-open messaging.tdb, which leads to one fcntl lock for CLEAR_IF_FIRST detection per smbd. This opens the tdb in the parent and holds it, so that tdb_reopen_all correctly catches the CLEAR_IF_FIRST bit.
* Fix bug #7233 - print fails with jobs >4GB from Win7 clients.Jeremy Allison2010-03-241-25/+53
| | | | | | Ensure we always write at end-of-file for older write calls. Jeremy.
* Fix valgrind warning when source and dest stat are identical.Jeremy Allison2010-03-241-1/+3
| | | | Jeremy.
* s3: Implement an asynchronous echo responder processVolker Lendecke2010-03-221-19/+478
| | | | | | This replies to echo requests when the main smbd is stuck somewhere Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd: don't allow SMB2 if the async echo handler is activeStefan Metzmacher2010-03-221-1/+2
| | | | metze
* s3:smbd: disable SMB encryption when the echo handler is activeStefan Metzmacher2010-03-221-0/+10
| | | | metze
* s3:smbd: disallow readbraw and writebraw if the echo handler is activeStefan Metzmacher2010-03-221-0/+17
| | | | metze
* s3:smbd: disable sendfile if the echo handler is activeStefan Metzmacher2010-03-221-0/+4
| | | | metze
* s3:smbd: don't use recvfile if the echo handler is activeStefan Metzmacher2010-03-221-1/+2
| | | | metze
* s3:smbd: setup a shared memory area for the signing stateStefan Metzmacher2010-03-221-0/+80
| | | | metze
* s3:smbd: add echo handler information to struct smbd_server_connectionStefan Metzmacher2010-03-222-0/+22
| | | | metze
* s3:smbd: pass down trusted_channel via receive_smb_talloc()Stefan Metzmacher2010-03-221-3/+5
| | | | metze
* s3:smbd: let reply_readbraw_error use the locked socketStefan Metzmacher2010-03-221-0/+11
| | | | metze
* s3:smbd: send keepalive packets under the socket lockStefan Metzmacher2010-03-221-1/+16
| | | | metze
* s3:smbd: smbd_[un]lock_socket() while accessing the socket to the clientStefan Metzmacher2010-03-221-1/+24
| | | | metze
* s3:smbd: add smbd_[un]lock_socket() dummiesStefan Metzmacher2010-03-222-0/+13
| | | | metze
* s3:smbd: add an option to skip signings checks srv_check_sign_mac for ↵Stefan Metzmacher2010-03-222-2/+24
| | | | | | trusted channels metze
* s3: Add "log writeable files on exit" parameterVolker Lendecke2010-03-221-0/+31
| | | | | | | This boolean option controls whether at exit time the server dumps a list of files with debug level 0 that were still open for write. This is an administrative aid to find the files that were potentially corrupt if the network connection died.
* s3: file_walk_table -> files_forallVolker Lendecke2010-03-221-1/+1
| | | | | This is more in line with the rest of the Samba code, like connections_forall etc.
* s3: Fix some nonempty blank linesVolker Lendecke2010-03-222-7/+6
|
* s3: Fix an uninitialized variable readVolker Lendecke2010-03-151-1/+1
| | | | | | | | Found by Laurent Gaffie <laurent.gaffie@gmail.com> Thanks for that, Volker
* Remove the bool admin_user from conn struct. We no longer look at this to ↵Jeremy Allison2010-03-152-6/+5
| | | | | | make access decisions. Jeremy.
* Fix bug #7188 - Logic error in check of total_data for call_trans2mkdir()Jeremy Allison2010-03-151-16/+13
| | | | | | Make ea data checks identical for trans2open and trans2mkdir. Jeremy.
* Remove reference to conn->admin_user in preparation for removal.Jeremy Allison2010-03-151-9/+13
| | | | | | | We use (uid_t)0 here not sec_initial_uid() as make test uses a single user context. I will revisit this when all the uid check changes are complete. Jeremy.
* Simplify processing of "admin user". If a user is an admin_user ensure their ↵Jeremy Allison2010-03-151-15/+14
| | | | | | | | | conn token is uid 0. This simplifies change_to_user() and removes special processing of the assignments we pass to set_sec_ctx(). Jeremy.
* Switch over to using get_currect_XXX() accessor functions.Jeremy Allison2010-03-155-33/+38
| | | | Jeremy.
* Pass "connection_struct *conn" into functions that currently use ↵Jeremy Allison2010-03-151-18/+20
| | | | | | | | "current_user.XXX" Will allow me to replace them with accessor functions. Jeremy.
* Add accessor functions for current uid, gid, unix token, NT token and vuid.Jeremy Allison2010-03-151-0/+43
| | | | Jeremy.
* Rever e80ceb1d7355c8c46a2ed90d5721cf367640f4e8 "Remove more uses of "extern ↵Jeremy Allison2010-03-157-122/+66
| | | | | | | | struct current_user current_user;"." As requested by Volker, split this into smaller commits. Jeremy.
* s3:smbd: make sure we always have a valid talloc stackframeStefan Metzmacher2010-03-151-0/+3
| | | | metze