summaryrefslogtreecommitdiffstats
path: root/source/smbd/conn.c
Commit message (Collapse)AuthorAgeFilesLines
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-2/+2
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.samba-misc-tags/initial-v3-2-testGerald (Jerry) Carter2007-10-101-0/+1
|
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r22942: Some message_register -> messaging_register conversionsVolker Lendecke2007-10-101-3/+6
|
* r22736: Start to merge the low-hanging fruit from the now 7000-line cluster ↵Volker Lendecke2007-10-101-1/+1
| | | | | | | | | patch. This changes "struct process_id" to "struct server_id", keeping both is just too much hassle. No functional change (I hope ;-)) Volker
* r22542: Move over to using the _strict varients of the tallocJeremy Allison2007-10-101-1/+1
| | | | | calls. No functional changes. Looks bigger than it is :-). Jeremy.
* r21871: Move deadtime processing into an idle event. While there, simplifyVolker Lendecke2007-10-101-11/+16
| | | | | | conn_idle_all() a bit. Volker
* r21867: Simplify calling convention of timeout_processing. lp_deadtime is onlyVolker Lendecke2007-10-101-1/+5
| | | | referenced in conn_idle_all().
* r21279: Get rid of 'aio write behind', this is broken.Volker Lendecke2007-10-101-1/+0
| | | | | | It should probably better be integrated with our write cache. Volker
* r21064: The core of this patch isVolker Lendecke2007-10-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | void message_register(int msg_type, void (*fn)(int msg_type, struct process_id pid, - void *buf, size_t len)) + void *buf, size_t len, + void *private_data), + void *private_data) { struct dispatch_fns *dfn; So this adds a (so far unused) private pointer that is passed from message_register to the message handler. A prerequisite to implement a tiny samba4-API compatible wrapper around our messaging system. That itself is necessary for the Samba4 notify system. Yes, I know, I could import the whole Samba4 messaging system, but I want to do it step by step and I think getting notify in is more important in this step. Volker
* r20178: Ensure we allocate the intermediate trans structsJeremy Allison2007-10-101-0/+8
| | | | | | | off conn->mem_ctx, not the null context so we can safefy free everything on conn close. Should fix possible memleak. Jeremy.
* r20098: Properly fix issues with create_token_from_username()Jeremy Allison2007-10-101-9/+0
| | | | | | | | | | | | | | reported by James. Ensure that this function allocates everything on the temporary context except the return memory. Never call this with a null mem context, and now use conn->mem_ctx instead in smbd/service.c. Remove separate free functions for conn->ngroups and conn->nt_user_token as they are now always talloc'ed off the conn->mem_ctx. Future optimization will be to remove conn->mem_ctx and make all objects pointed to in the conn struct talloc'ed off conn itself. Easy to free then :-). Jeremy.
* r20090: Fix a class of bugs found by James Peach. EnsureJeremy Allison2007-10-101-1/+1
| | | | | | | | | | | | | we never mix malloc and talloc'ed contexts in the add_XX_to_array() and add_XX_to_array_unique() calls. Ensure that these calls always return False on out of memory, True otherwise and always check them. Ensure that the relevent parts of the conn struct and the nt_user_tokens are TALLOC_DESTROYED not SAFE_FREE'd. James - this should fix your crash bug in both branches. Jeremy.
* r19709: Fix bug #4224 - deadtime timeout was brokenJeremy Allison2007-10-101-0/+1
| | | | | | | because of this. Probably a show-stopper for 3.0.23d. Thanks to Alain GORLIER <alain.gorlier@altissemiconductor.com> for the fix. Jeremy.
* r19386: Limit the size of the connection bitmap to <64K entries.James Peach2007-10-101-1/+11
|
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-3/+5
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r16317: Klocwork #300. Check for error return on malloc.Jeremy Allison2007-10-101-0/+4
| | | | Jeremy.
* r15088: Remove all time() and gettimeofday() calls out of the mainlineJeremy Allison2007-10-101-4/+12
| | | | | | packet processing code. Only do these when needed (ie. in the idle timeout code). We drop an unneccessary global here too. Jeremy.
* r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()Gerald Carter2007-10-101-1/+1
| | | | macro which sets the freed pointer to NULL.
* r13316: Let the carnage begin....Gerald Carter2007-10-101-1/+1
| | | | Sync with trunk as off r13315
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-1/+1
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r8963: Clean up the horrid "fake conn struct" part of MSDFS.Jeremy Allison2007-10-101-7/+15
| | | | Jeremy.
* r7963: Add aio support to 3.0.Jeremy Allison2007-10-101-0/+1
| | | | Jeremy.
* r7882: Looks like a large patch - but what it actually does is make SambaJeremy Allison2007-10-101-1/+1
| | | | | | safe for using our headers and linking with C++ modules. Stops us from using C++ reserved keywords in our code. Jeremy
* r4736: small set of merges from rtunk to minimize the diffsGerald Carter2007-10-101-0/+4
|
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2007-10-101-1/+1
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r1154: Change default setting for case sensitivity to "auto". If set to autoJeremy Allison2007-10-101-1/+1
| | | | | | | | | | | | then is the client supports it (current clients supported are Samba and CIFSVFS - detected by the negprot strings "Samba", "POSIX 2" and a bare "NT LM 0.12" string) then the setting of the per packet flag smb_flag FLAG_CASELESS_PATHNAMES is taken into account per packet. This allows the linux CIFS client to use Samba in a case sensitive manner. Additional command in smbclient "case_sensitive", toggles the flag in subsequent packets. Docs to follow. Jeremy.
* r656: Make widelinks use realpath(). Tidy up cases where we need to become a ↵Jeremy Allison2007-10-101-0/+1
| | | | | | service. Jeremy.
* Fixup the 'multiple-vuids' bugs.Jeremy Allison2004-02-131-3/+7
| | | | Jeremy.
* Patch from James Peach <jpeach@sgi.com>. Remove the MAX_CONNECTIONS limitJeremy Allison2003-12-111-9/+32
| | | | | | by increasing bitmap size. Limited by "max connections" parameter. Bug #716. Jeremy.
* Fix VFS layer:Alexander Bokovoy2003-05-111-21/+18
| | | | | | | | | 1. Finally work with cascaded modules with private data storage per module 2. Convert VFS API to macro calls to simplify cascading 3. Add quota support to VFS layer (prepare to NT quota support) Patch by Stefan (metze) Metzemacher, with review of Jelmer and me Tested in past few weeks. Documentation to new VFS API for third-party developers to follow
* More merges from HEAD:Jelmer Vernooij2003-04-161-9/+12
| | | | | | - Stephan Kulow's changes (fixing warnings in libsmbclient) - VFS modules - Seperating libs
* Merge of signed/unsigned fixes from HEAD.Andrew Bartlett2003-02-011-2/+2
|
* Fix reference count bug where smbd's would not terminate with noJeremy Allison2003-01-171-1/+12
| | | | | open resources. Jeremy.
* sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-251-2/+22
|
* Sync 3.0 branch with headJelmer Vernooij2002-08-171-4/+19
|
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-1/+1
|
* Removed HAVE_LIBDL from most places (except system.c). Added checks forJeremy Allison2002-03-271-2/+0
| | | | | | dlopen & friends into configure.in. This should help building on *BSD where dl*** calls are in libc. Jeremy
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-2/+0
|
* move to SAFE_FREE()Simo Sorce2001-09-171-3/+2
|
* added a close-share smbcontrol message that forcibly closes a share in smbd ↵Andrew Tridgell2001-06-201-0/+30
| | | | (to allow unmount)
* Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison2001-03-111-4/+0
| | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy.
* Restructuring of vfs layer to include a "this" pointer - can be an fsp orJeremy Allison2000-10-061-11/+3
| | | | | | | | | | | | | | | a conn struct depending on the call. We need this to have a clean NT ACL call interface. This will break any existing VFS libraries (that's why this is pre-release code). Andrew gets credit for this one :-) :-). In addition - added Herb's WITH_PROFILE changes - Herb - please examine the changes I've made to the smbd/reply.c code you added. The original code was very ugly and I have replaced it with a START_PROFILE(x)/END_PROFILE(x) pair using the preprocessor. Please check this compiles ok with the --with-profile switch. Jeremy.
* Added an NT_USER_TOKEN structure that is copied/passed around associatedJeremy Allison2000-08-031-1/+4
| | | | | | | with the current user. This will allow se_access_check() to quickly do a SD check without having to translate uid/gid's to SIDs. Still needs work on pipe calls. Jeremy.
* Getting back to a compilable state (not there yet but close).Jeremy Allison2000-06-011-0/+3
| | | | | | | Added patches for random -> sys_random. Added set_effective_xxx patches for AFS code. Memory allocation changes in spoolss code. Jeremy.
* more merging voodooAndrew Tridgell2000-05-101-0/+4
| | | | | | this adds "#define OLD_NTDOMAIN 1" in lots of places. Don't panic - this isn't permanent, it should go after another few merge steps have been done
* fixed a vfs crash bugAndrew Tridgell2000-05-061-6/+4
|
* Moved deletion of vfs handle into smbd/conn.c as it was being done tooJeremy Allison2000-04-281-0/+15
| | | | | | | | | | soon in smbd/service.c (file operations were being done after the handle was closed). It looks cleaner in smbd/conn.c as it is part of the closing of a conn struct anyway. Jeremy.