1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-09 20:23:51 +03:00
Commit Graph

27 Commits

Author SHA1 Message Date
Jelmer Vernooij
a1280252ce Remove more global_loadparm instance.s 2008-02-21 17:54:24 +01:00
Andrew Tridgell
52d7972d95 Fixed SMB2 rename operations from Vista clients
We needed a flag in bufinfo to mark packets as SMB2, as it seems that
SMB2 uses a different format for the RenameInformation buffer than SMB
does

Also handle the fact that SMB2 clients give the full path to the
target file in the rename, not a relative path
2008-02-14 12:30:31 +11:00
Andrew Tridgell
ca6d9be6cb Convert SMB and SMB2 code to use a common buffer handling structure
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.
2008-02-14 10:12:33 +11:00
Jelmer Vernooij
d37136b7ab r26429: Avoid use of global_smb_iconv_convenience. 2007-12-21 05:49:56 +01:00
Jelmer Vernooij
f6420d933b r26316: Use contexts for conversion functions. 2007-12-21 05:48:30 +01:00
Jelmer Vernooij
c9651e2c5c r25551: Convert to standard bool type. 2007-10-10 15:07:54 -05:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Stefan Metzmacher
8a5bc18c5a r17361: check that file handles are only accessable
by the correct session in the SMB frontend server

metze
2007-10-10 14:15:19 -05:00
Stefan Metzmacher
b7418aec33 r17012: don't try to send any data when the socket is gone already...
(fixes crash bugs)

metze
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
04f0d3d031 r16950: remove the smb mid from the ntvfs layer and keep a list of pending
requests on the smbsrv_connection, to be able to match then on
ntcancel

metze
2007-10-10 14:10:02 -05:00
Stefan Metzmacher
6c304a1a5f r15751: thanks to talloc_get_type() I noticed that I used smbsrv_request in the smb2srv code
metze
2007-10-10 14:08:13 -05:00
Stefan Metzmacher
287fc1c22d r15734: This is a major change to the NTVFS subsystem:
- 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
2007-10-10 14:08:10 -05:00
Jelmer Vernooij
3ef9326386 r15304: Fix smbd build, more updates on getting --enable-dso to build again 2007-10-10 14:05:08 -05:00
Jelmer Vernooij
7af59357b9 r15191: Avoid uint_t as it's not standard. 2007-10-10 14:04:15 -05:00
Andrew Tridgell
85d70f1c15 r14937: fix a crash that can be caused by a notify triggering during a share
disconnect
2007-10-10 14:00:19 -05:00
Stefan Metzmacher
7253153691 r14541: separate smbsrv_request and ntvfs_request,
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
2007-10-10 13:58:41 -05:00
Stefan Metzmacher
4ff3fb35e8 r14538: ok, I have better used make valgrindtest my self...
the 3 bytes for WordCount and ByteCount are included in MIN_SMB_SIZE...

metze
2007-10-10 13:58:41 -05:00
Stefan Metzmacher
3441a4a74f r14526: fix the size of the output buffer, we need 1 byte for the Word count
now smbsrv_setup_reply() and req_setup_chain_reply() do the same thing

tridge: can you please check if this is correct,
        I wonder why we don't got valgrind errors...
	as the over allocation is disabled currently

metze
2007-10-10 13:57:37 -05:00
Stefan Metzmacher
10e627032d r14487: split smbsrv_request into two parts, one will be moved to ntvfs_request
but I don't to get the commit to large, to I'll do this tomorrow...

metze
2007-10-10 13:57:32 -05:00
Stefan Metzmacher
60d7920527 r13877: remove smbsrv_send_dos_error() and use smbsrv_send_error(..,NT_STATUS_DOS())
metze
2007-10-10 13:52:19 -05:00
Stefan Metzmacher
e6275db7b9 r13870: prefix more functions with smbsrv_
metze
2007-10-10 13:52:19 -05:00
Stefan Metzmacher
bd3162e6a7 r13868: remove useless talloc_free() wrapper
metze
2007-10-10 13:52:19 -05:00
Andrew Tridgell
af6606fe98 r13856: fixed a misleading comment 2007-10-10 13:52:17 -05:00
Stefan Metzmacher
7cf1423bc8 r13620: initialize the CMD with 0 too
metze
2007-10-10 13:52:01 -05:00
Jelmer Vernooij
70e7449318 r12608: Remove some unused #include lines. 2007-10-10 13:49:03 -05:00
Jelmer Vernooij
87f665a1d5 r12528: Add seperate proto headers for ntvfs, tdr, smb_server and nbt_server. 2007-10-10 13:47:51 -05:00
Stefan Metzmacher
5fea278cb6 r11786: move all SMB protocol specific stuff to smb_server/smb/
metze
2007-10-10 13:46:27 -05:00