summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #6315 smbd crashes doing vfs_full_audit on IPC$ close event.Jeremy Allison2009-05-041-3/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The underlying problem is that once SMBulogoff is called, all server_info contexts associated with the vuid should become invalid, even if that's the context being currently used by the connection struct (tid). When the SMBtdis comes in it doesn't need a valid vuid value, but the code called inside vfs_full_audit always assumes that there is one (and hence a valid conn->server_info pointer) available. This is actually a bug inside the vfs_full_audit and other code inside Samba, which should only indirect conn->server_info on calls which require AS_USER to be set in our process table. I could fix all these issues, but there's no guarentee that someone might not add more code that fails this assumption, as it's a hard assumption to break (it's usually true). So what I've done is to ensure that on SMBulogoff the previously used conn->server_info struct is kept around to be used for print debugging purposes (it won't be used to change to an invalid user context, as such calls need AS_USER set). This isn't strictly correct, as there's no association with the (now invalid) context being freed and the call that causes conn->server_info to be indirected, but it's good enough for most cases. The hard part was to ensure that once a valid context is used again (via new sessionsetupX calls, or new calls on a still valid vuid on this tid) that we don't leak memory by simply replacing the stored conn->server_info pointer. We would never actually leak the memory (as all conn->server_info pointers are talloc children of conn), but with the previous patch a malicious client could cause many server_info structs to be talloced by the right combination of SMB calls. This new patch introduces free_conn_server_info_if_unused(), which protects against the above. Jeremy.
* Do not crash in ctdbd_traverse if ctdbd is not aroundVolker Lendecke2009-05-041-0/+5
|
* Increase debug level of "create_connection_server_info failed" messageVolker Lendecke2009-05-041-1/+1
| | | | | I don't think we should unconditionally send every refused connection attempt to a share to syslog, that's where all debug level 0 messages end up.
* s3-printing: Fix driver upload for Xerox 4110 PS printer driver.Günther Deschner2009-05-041-0/+2
| | | | | | | | | | | | | | | | | | | | | We need to allow to set filesystem capabilities from the default vfs in create_conn_struct() in order to find mixed-case filenames. Thanks Volker! This one was hard to find, so a little longer explanation: When a Windows client tries to upload e.g. the Xerox 4110 PS driver, the client first uploads the driver files to the [print$] share. Some of them (in this case the Windows Postscript drivers) are with uppercase filenames while some of them (like the PPD file) are in lowercase. After the driver upload the client issues the spoolss_AddPrinterDriverEx() call with level 6. There the client tries to add the PPD file with an uppercase filename (while having stored it in lowercase on the server). The internal spoolss add driver functions then could not find the appropriate filename while trying to move them to the version subdirectory (in this case W32X86/3) and fails then entire spoolss_AddPrinterDriverEx() call. With this fix, the convert_unix_name() name finds the correct file and the spoolss_AddPrinterDriverEx() succeeds. Guenther
* Fix Coverity ID 913 (NEGATIVE_RETURNS) -- gd, please check!Volker Lendecke2009-05-031-2/+2
|
* Fix an invalid type warningVolker Lendecke2009-05-031-1/+1
|
* Fix some warnings due to uint16_t!=-1 always being trueVolker Lendecke2009-05-033-6/+6
|
* Fix a bunch of type-punned warnings -- gd, please fix properly :-)Volker Lendecke2009-05-031-15/+30
|
* Fix bug 6136: New AFS syscall conventionsGeza Gemes2009-05-033-4/+24
| | | | | | | | Haven't checked this myself, but as I've already got several reports that Samba won't compile against current OpenAFS anymore, I just believe Geza Gemes. This patch only affects AFS code, so it should not hurt anything else. Volker
* Attempt to fix the build on SerNet-sles8Volker Lendecke2009-05-021-3/+6
| | | | That compiler does not like #if embedded into the macro NT_STATUS_IS_OK.
* Explicitly link in pthreads for lib/pthreadpool if requiredVolker Lendecke2009-05-021-0/+3
| | | | No idea why it works on my Linux without -lpthread ... :-)
* Fix a malloc/talloc mixupVolker Lendecke2009-05-021-1/+1
|
* Many build farm boxes do not have clock_gettimeVolker Lendecke2009-05-011-2/+2
|
* tsocket: remove tsocket_context related stuffStefan Metzmacher2009-05-011-4/+1
| | | | | | It will be replaced by tdgram_context and tstream_context. metze
* Add getaddrinfo_send/recvVolker Lendecke2009-05-014-0/+145
|
* Add fncall_send/recvVolker Lendecke2009-05-014-0/+375
|
* Add thread poolVolker Lendecke2009-05-014-2/+562
| | | | | | | Included if pthreads are found, can be disabled with --enable-pthreadpool=no Tim, Steven, I haven't yet seen comments from you. You have been asking for such a thing at SambaXP. Do you like this? :-)
* Cause cli_close to return an NTSTATUS.Jeremy Allison2009-04-3012-163/+84
| | | | Jeremy.
* s3:config.sub: clean some space/tab mixup that git complains aboutMichael Adam2009-05-011-1/+1
| | | | Michael
* s3:config.sub: replace old FSF address by the web site url.Michael Adam2009-05-011-3/+1
| | | | Michael
* s3:config.sub: move to GPLv3Michael Adam2009-05-011-1/+1
| | | | Michael
* s3:update config.sub from gnu.org (2009-04-17)Michael Adam2009-05-011-48/+157
| | | | | | | | | as requested in bug #6292. This is taken from http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD Michael
* s3:config.guess: clean some whitespace/tab mixtures that git complains aboutMichael Adam2009-05-011-2/+2
| | | | Michael
* s3:config.guess: replace old FSF address by the web site url.Michael Adam2009-05-011-3/+1
| | | | Michael
* s3:config.guess: move to GPLv3Michael Adam2009-05-011-1/+1
|
* s3:update config.guess form gnu.org (version 2009-04-27)Michael Adam2009-05-011-27/+125
| | | | | | | | | as requested in bug #6292. This is taken from http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD Michael
* Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.Jeremy Allison2009-04-3029-599/+482
| | | | | | | Convert all uses of cli_open(), cli_nt_createXXX to NTSTATUS versions. This is smaller than it looks, it just fixes a lot of old code. Next up, ensure all cli_XX functions return NTSTATUS. Jeremy.
* s3-netapi: Fix Bug #6309: support remote unjoining of Windows 2003 or greater.Günther Deschner2009-04-302-2/+4
| | | | | | Found by David Markey <admin@dmarkey.com>. Thanks! Guenther
* s3-printing: rework move_driver_file_to_download_area() a bit for clarity.Günther Deschner2009-04-301-32/+40
| | | | Guenther
* s3-lsa: use LSA_POLICY_MODE flags in _lsa_GetSystemAccessAccount().Günther Deschner2009-04-302-7/+2
| | | | Guenther
* s3-nss_wins: Fix unresolved ldb symbols in libnss_wins.so.Günther Deschner2009-04-301-1/+1
| | | | | | The objects for this module should probably be cleaned up once. Guenther
* Re-import the v3-3 version of str_list_make().Volker Lendecke2009-04-301-7/+59
| | | | | | | | | | | | | | The merged version behaves differently: "Domain Users" is parsed into two values, as it does not look at quotes. Samba3 users depend on the ability do say for example valid users = "domain users" which would not work anymore with the merged version. Thanks to Björn Jacke for testing this! Volker
* Fix notify_onelevel: notify is not necessarily enabledVolker Lendecke2009-04-301-0/+4
| | | | | | Thanks to Günther Deschner! Volker
* s3-spoolss: avoid referring to uid 0 in spoolss server (use ↵Günther Deschner2009-04-301-3/+3
| | | | | | sec_initial_uid() instead). Guenther
* s3-printing: use move_driver_file_to_download_area() to avoid code duplication.Günther Deschner2009-04-301-144/+54
| | | | Guenther
* s3-printing: add move_driver_file_to_download_area().Günther Deschner2009-04-301-0/+40
| | | | Guenther
* Make cli_unlink async.Jeremy Allison2009-04-2913-140/+210
| | | | Jeremy.
* More async calls in libsmb/clifile.cJeremy Allison2009-04-293-53/+188
| | | | Jeremy.
* s3:vfs: untangle logic for loading and probing modules in vfs_init_custom()Michael Adam2009-04-291-11/+23
| | | | | | This is to be able to provide more specific error messages. Michael
* s3-test: make it possible to find the built vlp in "make test".Günther Deschner2009-04-291-1/+9
| | | | Guenther
* s3-net: make "net eventlog" help output a little more appropriate.Günther Deschner2009-04-291-1/+1
| | | | Guenther
* s3: fix crash in winbinddBo Yang2009-04-292-0/+10
|
* s3:smbd/service: switch load_registry_service/shares to use loadparm routinesMichael Adam2009-04-293-71/+5
| | | | | | | | | | | instead of reading the registry directly with tdb and activating the configure options by hand. This eliminates the need for repeating checks done in loadparm. For instance it disables registry shares without path in the server as is the case with text based shares. Michael
* s3:loadparm: refactor process_registry_service out or process_registry_globalsMichael Adam2009-04-292-11/+26
| | | | Michael
* Doh ! Don't need "int dummy" when we have state :-).Jeremy Allison2009-04-281-1/+0
| | | | Jeremy.
* Convert cli_rename to async.Jeremy Allison2009-04-286-33/+122
| | | | Jeremy.
* Convert cli_posix_unlink() and cli_posix_rmdir()Jeremy Allison2009-04-284-69/+208
| | | | | to async. First trans calls I've done. Jeremy.
* Fix bug #6291 - force user stop working.Jeremy Allison2009-04-281-1/+37
| | | | | | | A previous fix broke the invariant that *uid is always initialized on return from create_token_from_username(). Restore it. Jeremy.
* s3-cldap: check for zero ip address in ads_cldap_netlogon().Günther Deschner2009-04-281-0/+7
| | | | Guenther
* s3:loadparm: prevent infinite include nesting.Michael Adam2009-04-281-2/+19
| | | | | | | | | | | | This introduces a hard coded MAX_INCLUDE_DEPTH of 100. When this is exceeded, handle_include (and hence lp_load) fails. One could of course implement a more intelligent loop detection in the include-tree, but this would require some restructuring of the internal loadparm housekeeping. Maybe as a second improvement step. Michael