summaryrefslogtreecommitdiff
path: root/source4/smb_server/smb/receive.c
AgeCommit message (Collapse)AuthorFilesLines
2012-05-24s4:smb_server/smb: fix talloc_free() bugStefan Metzmacher1-1/+1
ERROR: talloc_free with references at ../source4/smb_server/smb/receive.c:637 reference at ../source4/ntvfs/posix/pvfs_wait.c:86 metze
2012-04-02s4:smb_server/smb: remove a request from the list before adding the next one ↵Stefan Metzmacher1-0/+1
in a chain. metze
2011-11-08s4-smb_server No longer follow the security=share smb.conf directiveAndrew Bartlett1-9/+1
By ignoring the value of security= from the smb.conf, we can allow this to instead set the value of 'server role' in a manner compatible with the Samba 3.x release stream. Andrew Bartlett
2011-07-12s4:libcli/raw: s/SMBchkpth/SMBcheckpathStefan Metzmacher1-1/+1
metze
2011-06-09lib/util Bring procid_str() into lib/util as server_id_string()Andrew Bartlett1-1/+1
This is needed for OpenChange, which prints Samba struct server_id values in debug messages. Andrew Bartlett
2011-05-03s4:cluster Rename .id to .pid in server_idAndrew Bartlett1-3/+6
This also changes some DEBUG messages to use cluster_id_string() rather than .id, to isolate them from this and other changes. Andrew Bartlett
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell1-3/+3
this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-09-19s4-smbd: minimise includes in smbd/ and smb_serverAndrew Tridgell1-2/+0
2009-08-05changed BCC handling for SMBwriteX to handle broken MacOSX clientAndrew Tridgell1-13/+8
see bug #6610 The MacOSX SMB client sets the BCC value in SMBwriteX calls to zero instead of the correct size. Checking against WindowsXP, I've found that Windows uses the maximum of the computed buffer size and the given BCC value. I've changed Samba4 to do the same to allow MacOSX to work. I've limited this change to non-chained packets to ensure we don't get the possibility of exploits based on overlapping chained requests
2009-02-02s4:smb_server: s/private/private_dataStefan Metzmacher1-2/+2
metze
2008-05-16fixed warningAndrew Tridgell1-1/+2
(This used to be commit d5165ed7a77120f42c25c4997be2630f0f1cb98c)
2008-04-18Flag smb messages array with AND_X and LARGE_REQUESTAmin Azez1-10/+21
If smb_messages flags show for which opcodes VWV(0) signifies chaining modes, and also which opcodes can have requests >64K then the bcc / req->in.data_size fixup in smbsrv_recv_smb_request can be more safely applied. This fix permits nttrans requests >64K to be handled. It is not yet clear if THAT is a good thing, but this fix does the current thing more nicely. (This used to be commit 8e4f16e975e192709f398c98650cbe9fe2a76261)
2008-04-18Re-order smbsrv_recv_smb_request and smb_messagesAmin Azez1-99/+99
No functional change, just re-ordering so that smbsrv_recv_smb_request can refer to smb_messages in a future patch (This used to be commit d06eafea1a3e7fa61c94492cf504e6fd81da861d)
2008-02-14Convert SMB and SMB2 code to use a common buffer handling structureAndrew Tridgell1-0/+6
This converts our SMB and SMB2 code to use a common structure "struct request_bufinfo" for information on the buffer bounds of a packet, alignment information and string handling. This allows us to use a common backend for SMB and SMB2 code, while still using all the same string and blob handling functions. Up to now we had been passing a NULL req handle into these common routines from the SMB2 side of the server, which meant that we failed any operation which did a bounds checked string extraction (such as a RenameInformation setinfo call, which is what Vista uses for renaming files) There is still some more work to be done on this - for example we can now remove many of the SMB2 specific buffer handling functions that we had, and use the SMB ones. (This used to be commit ca6d9be6cb6a403a81b18fa6e9a6a0518d7f0f68)
2007-12-21r26236: Remove more uses of global_loadparm or specify loadparm_context ↵Jelmer Vernooij1-4/+4
explicitly. (This used to be commit 5b29ef7c03d9ae76b0ca909e9f03a58e1bad3521)
2007-10-10r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij1-3/+3
(This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
2007-10-10r25026: Move param/param.h out of includes.hJelmer Vernooij1-0/+1
(This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-3/+2
There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10r20657: fix compiler warning and bug:-)Stefan Metzmacher1-1/+1
metze (This used to be commit ddf6c90159a99c2f70a93915839caa43afc5500b)
2007-10-10r18972: we don't need this now all builds in the build farm are limited to 150Andrew Tridgell1-12/+0
file descriptors. We'll pretty quickly find leaks :) (This used to be commit be70992d71d7b8db64702f9be2b29aac3e463590)
2007-10-10r18583: a nasty hack to allow me to monitor the number of open fileAndrew Tridgell1-0/+13
descriptors in smbd on all build farm machines. I suspect we have a fd leak somewhere, but its hard to track down. I know part of the problem is the number of (fake) network interfaces we define in the build farm tests, with each of them listening on a whole bunch of different protocol ports. That chews up around 48 file descriptors just to startup. I don't think thats the real problem though, and I suspect something else is leaking file descriptors on some hosts. (This used to be commit 83bf458ec98d9f2a21b3748802f41abcbcc1e0b2)
2007-10-10r18301: I discovered how to load the warnings from a build farm build intoAndrew Tridgell1-1/+2
emacs compile mode (hint, paste to a file, and compile as "cat filename"). This allowed me to fix nearly all the warnings for a IA_64 SuSE build very quickly. (This used to be commit eba6c84efff735bb0ca941ac4b755ce2b0591667)
2007-10-10r17280: NT_STATUS_INVALID_HANDLE maps to ERRbadfid, which is wrong in thisStefan Metzmacher1-14/+20
places, so only overwrite ERRbaduid and ERRinvnid when NTSTATUS support is given. metze (This used to be commit c70edc3fb8ef02ce12c784fad7ee9d5ac782bf98)
2007-10-10r15734: This is a major change to the NTVFS subsystem:Stefan Metzmacher1-2/+2
- to use a struct ntvfs_handle instead of a uint16_t fnum. (to make it independend from the frontend protocol) - the allocation of handles now is provided by the frontend (smbsrv_*) via callbacks and not by each backend module - this also makes sure that file handles are only passed to the ntvfs subsystem when the tcon and session matches, so modules can rely on this and need to check this. - this allows multiple modules in the ntvfs module chain to allocate file handles. This can be used for virtual files like "\\$Extend\\$Quota:$Q:$INDEX_ALLOCATION"... - also this will make SMB2 with 128 bit file handles possible metze (This used to be commit 287fc1c22d670f6e568014b420f7f4cb31dc7958)
2007-10-10r15304: Fix smbd build, more updates on getting --enable-dso to build againJelmer Vernooij1-0/+1
(This used to be commit 3ef9326386ba1c210166302cbcf02d2ed3f19944)
2007-10-10r14739: keep the last request time for the smbsrv_connection,Stefan Metzmacher1-4/+7
smbsrv_session and smbsrv_tcon for management tools metze (This used to be commit 2c87f210e9e68de42dc45ca6532f3f33f4b6ce95)
2007-10-10r14733: SMBtdis needs a TCON and doesn't need a SESSION,Stefan Metzmacher1-1/+2
on an invalid tcon it gives NT_STATUS_DOS(ERRSRV, ERRinvnid) metze (This used to be commit fca74f2a4ba7d4a18801294a6b2be548864a5252)
2007-10-10r14647: be a bit less verbose on common stuffStefan Metzmacher1-1/+1
metze (This used to be commit 9f9240d118c66d89a8b51bc54be11828251d0872)
2007-10-10r14541: separate smbsrv_request and ntvfs_request,Stefan Metzmacher1-11/+5
with this it's now possible to write a ntvfs_test programm like the vfstest in samba3 also smb2 support will be possible later metze (This used to be commit 7253153691e35cd206346fbd4e9b9f95c042f602)
2007-10-10r14487: split smbsrv_request into two parts, one will be moved to ntvfs_requestStefan Metzmacher1-2/+8
but I don't to get the commit to large, to I'll do this tomorrow... metze (This used to be commit 10e627032d7d04f1ebf6efed248c426614f5aa6f)
2007-10-10r14485: mark smb commands as need session and need tcon explicit,Stefan Metzmacher1-74/+76
so we only need to check in one global place and can't forget in other places... metze (This used to be commit 742be8e075651c3b7e502ec6da01286fd7a2d4ca)
2007-10-10r14456: don't access the smbsrv_tcon inside the ntvfs modulesStefan Metzmacher1-6/+5
metze (This used to be commit 5709c1c4e1a561dd9af98cfefbbbdac9b18765b7)
2007-10-10r13877: remove smbsrv_send_dos_error() and use ↵Stefan Metzmacher1-2/+2
smbsrv_send_error(..,NT_STATUS_DOS()) metze (This used to be commit 60d7920527cd0e4142427fa59b9e617d99e3d984)
2007-10-10r13870: prefix more functions with smbsrv_Stefan Metzmacher1-14/+17
metze (This used to be commit e6275db7b926d3660ad4a0f40041a5129001427a)
2007-10-10r13868: remove useless talloc_free() wrapperStefan Metzmacher1-2/+2
metze (This used to be commit bd3162e6a7f154630c2d88be70ce19e8dd977133)
2007-10-10r13865: prefix functions with smbsrv_Stefan Metzmacher1-76/+76
metze (This used to be commit 2af96632757ee4bb0261b1871100008b48c5fd4d)
2007-10-10r13862: rename chain_reply -> smbsrv_chain_replyStefan Metzmacher1-1/+1
metze (This used to be commit 497b219c7d7ec15d1d25e174a7287b7da8d02403)
2007-10-10r12608: Remove some unused #include lines.Jelmer Vernooij1-1/+0
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10r12528: Add seperate proto headers for ntvfs, tdr, smb_server and nbt_server.Jelmer Vernooij1-0/+1
(This used to be commit 87f665a1d5ba74289974bf9d8f9441c162e6f1b1)
2007-10-10r12102: for SMB2 we need to allocate tcons per sessionStefan Metzmacher1-2/+2
metze (This used to be commit 4d527ac005086c2db954578b4126ca128e436e01)
2007-10-10r11968: More warning fixes. We're on track to getting to double digits forTim Potter1-3/+3
the number of warnings generated now. (This used to be commit d479f2d7607adc698d71c5ba26932c72a26dcaab)
2007-10-10r11788: remove unused header filesStefan Metzmacher1-3/+0
metze (This used to be commit 27a2615876be3d49cca417796ad7466c342a6f8b)
2007-10-10r11786: move all SMB protocol specific stuff to smb_server/smb/Stefan Metzmacher1-0/+657
metze (This used to be commit 5fea278cb65076cea71bb6c921e51c4feffc37d7)