1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

498 Commits

Author SHA1 Message Date
Stefan Metzmacher
e8b61d7cc8 r16872: when we know the data length we can preallocate the buffer
and avoid a realloc

metze
(This used to be commit 51d59d23a1179689bda7cd1ab8cc43de31ad4f24)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
bb158b74da r16871: zero padding bytes
(found by valgrind)

metze
(This used to be commit 283bec8295b6302dfe3dc12c82d7870bdfee8b37)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
f0f7070ad7 r16870: copy over the status from the ntvfs request to the smb2 request
so that smb2srv_setup_reply() doesn't push uninitialized data
(found by valgrind)

metze
(This used to be commit 1a1fd2747d12663ff1084a3bc85e85c74188edb7)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
cf901ad491 r16869: - if we know the blob length, we can preallocated the memory
and avoid a realloc in smb2_push_*
- don't overwrite the first data byte

metze
(This used to be commit 7761a2a595720e30f2a38448761ca77077908be7)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
af0a9eb529 r16834: split the level's of smb_search_first/smb_search_next and the levels
of smb_search_data

metze
(This used to be commit 78c201db8a47a71908698c4dda2add4cf85694d9)
2007-10-10 14:09:49 -05:00
Stefan Metzmacher
fbf566b777 r16815: split out search levels which are also used by smb2
metze
(This used to be commit 3b8ecc19fac6f9d52adae86767ca153ab719d00d)
2007-10-10 14:09:47 -05:00
Stefan Metzmacher
21af3847a6 r16740: just say the directory is empty
metze
(This used to be commit 6326bb901fa2daa358f865f77c110096a1764126)
2007-10-10 14:09:43 -05:00
Stefan Metzmacher
dd44e2415c r16738: vista beta2 use FILE_CLOSED as error for an invalid file handle
metze
(This used to be commit fa35ddcaf9bbeaa4780aa3497cdff56b02af0ab9)
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
2400ebc428 r16735: vista beta2 reuses the tcp connect where it does the
SMB negprot

metze
(This used to be commit 3b2936a4313abedfe2029330a8f8149372050a2a)
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
6acd9aed93 r16734: the 2 bytes after the opcode and before the flags,
is no padding...

the following patch is needed for vista beta2 to connect to samba4

metze
(This used to be commit 58baae8fc463cd2c4e4ce532c153ad80313b03eb)
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
a18fc61d4f r16733: implement SMB2 SetInfo
metze
(This used to be commit 9b6f74778f8db2fa18bb56dcbc6bd8168a882ac9)
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
b20c00f718 r16732: use the given macros
metze
(This used to be commit 6d5c74c38ca4d4a605b619cd7cbbd7e1dccd6b0c)
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
2f60a2bc7a r16731: send a better error code, required for vista-beta2 client
metze
(This used to be commit a251e722063486448005a95d0b44201b5f3a7620)
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
63d0c5a057 r16708: the packet format of SMB2 SessionSetup has changed,
there're 8 more unknown bytes...

Note:
 - vista-CTP also support this as a server,
   but uses the old format as client
 - but vista-beta2 only uses and accept the new format

metze
(This used to be commit b3bdd4afdefc9ad3550f86a0aa6e6c90bf8ab416)
2007-10-10 14:09:40 -05:00
Stefan Metzmacher
bd0dcebe36 r16705: fix a bug found by valgrind...
as we setup the 1 padding byte for non present dynamic part,
we need to overwrite it when we're getting a real dynamic part,
so we need to remove the buf->size +=1 when we do the first
push to the dynamic part (when buf->dynamic is still but->body + buf->body_fixed)

metze
(This used to be commit f309209629ad1b63a76fc06163a3eeb07dce4c86)
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
d63dd113ae r16699: the layout of SMB2 Read and Write is identical...
so we know that the 9th bytes is just uninitialized padding

metze
(This used to be commit f97a21b970ed23973cced2c67b5bc9ecd7afee88)
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
4015b01088 r16671: allow usage of smbsrv_pull_passthru_sfileinfo() without,
a smbsrv_request given...

the RENAME level is not supported in this mode, but that will be fixed later

metze
(This used to be commit 058c6397a4018975f62e8277b905a2566c3b2fe0)
2007-10-10 14:09:37 -05:00
Stefan Metzmacher
826597bfa8 r16670: try to match the vista error codes a bit more
metze
(This used to be commit 1a4978118d27e978c04997869a307b793582917b)
2007-10-10 14:09:37 -05:00
Stefan Metzmacher
bcc9e8af30 r16666: implement setting of security_descriptors via SMB2 SetInfo
metze
(This used to be commit 6908582f68478d5f702159f6b01934ffff3a95f0)
2007-10-10 14:09:36 -05:00
Stefan Metzmacher
f8d8454461 r16621: split out passthru levels of setfileinfo
metze
(This used to be commit 6cd64cb78f23c88029b8b5ef712b3f8a26e8528f)
2007-10-10 14:09:36 -05:00
Stefan Metzmacher
ca044dcd3a r16568: add parsing code for SMB2 SetInfo
metze
(This used to be commit 70cc9928437d6edab3de5a858078870f510398d0)
2007-10-10 14:09:35 -05:00
Stefan Metzmacher
74fe06832a r16520: move smb2srv_break_recv back to fileio.c
metze
(This used to be commit cdee9b2168da47a38da769eb2b4f403bc4699dfe)
2007-10-10 14:09:31 -05:00
Stefan Metzmacher
98024a8125 r16467: implement SMB2 GetInfo server code
metze
(This used to be commit 49b5b3cd58c41b67adfbb77b4244989fba6bcd2e)
2007-10-10 14:09:30 -05:00
Stefan Metzmacher
70eac2a274 r16466: for SMB2_ALL_EAS it's not valid for the ntvfs backends to return
0 eas, they should return an error:
NO_EAS_ON_FILE or NO_MORE_EAS

metze
(This used to be commit fdefec1de99273978345d4a183a9660bd741e045)
2007-10-10 14:09:29 -05:00
Stefan Metzmacher
7bf085571e r16464: split client and server min/max protocol settings
metze
(This used to be commit 6164d1e22e0545f558315591d49f862de06ea945)
2007-10-10 14:09:29 -05:00
Stefan Metzmacher
15de59549b r16457: fix typo
metze
(This used to be commit 049ddc8a96da7a8fb0bbf1ef652c1963e9103d9b)
2007-10-10 14:09:16 -05:00
Stefan Metzmacher
74d58ab06f r16456: return on error...
metze
(This used to be commit 44ab067d146503bd1cc008cf01c08b91fb14b204)
2007-10-10 14:09:16 -05:00
Stefan Metzmacher
2a3bcdb530 r16450: fix the build...
metze
(This used to be commit 316f3312d228a8c29185bf38c93c7f3aa1c6333e)
2007-10-10 14:09:16 -05:00
Stefan Metzmacher
23803094e5 r16449: move some code to a generic place
metze
(This used to be commit 77a711c54ae7543a26f0ace1f189d6ed580c48d9)
2007-10-10 14:09:15 -05:00
Stefan Metzmacher
47a78861bc r16448: add more error checks
metze
(This used to be commit d6d86c65bf1835061713e0d8f2450e38455a3e1d)
2007-10-10 14:09:15 -05:00
Stefan Metzmacher
0f29d9fb3f r16444: - split out qfsinfo passthru levels
- use 1 to 1 mapping of interface and wire levels

metze
(This used to be commit e7d339d49669e72588461584b66ef9b19eb0a2f8)
2007-10-10 14:09:14 -05:00
Stefan Metzmacher
2d88ade182 r16443: add push code for SMB2 levels
metze
(This used to be commit 142680ab9b4ca04ea94ed40659358e1158f88c7a)
2007-10-10 14:09:14 -05:00
Stefan Metzmacher
1ff99ba12d r16440: split out passthru level into a new functions,
so they can we reused for smb2 later

metze
(This used to be commit 42324c1f63e2f16b27c43bf17b434c644244b931)
2007-10-10 14:09:14 -05:00
Stefan Metzmacher
f8dc3bbf9f r16410: remove some warnings of talloc_steal() usage without target
I only commit this as this is used in a global macro

tridge: we should try to get rid of this warning without using
	(void)talloc_steal(ctx, ptr);
	everywhere!!!

metze
(This used to be commit 3f8ce6d680b0c86abc698b8f9c6d8840da3ffd35)
2007-10-10 14:09:13 -05:00
Stefan Metzmacher
1fd1e2ba58 r16407: add parsing code the SMB2 GetInfo in the server
metze
(This used to be commit c4755c83c61c0cc822c69cd274056ec20ba66fdb)
2007-10-10 14:09:13 -05:00
Stefan Metzmacher
818c52a6b4 r16403: remove dependency to smbsrv_request next part...
metze
(This used to be commit 708a5d3bf08f62ba99740c3007a8882e22a01bc9)
2007-10-10 14:09:13 -05:00
Stefan Metzmacher
45c99a270e r16402: start to remove the dependecy to smbsrv_request from the parsing functions
metze
(This used to be commit e4a5e2db7f3333e7cb15bdd6eeb5b08a6f1d912f)
2007-10-10 14:09:12 -05:00
Stefan Metzmacher
7c01df4e77 r16401: keep the old pointer when realloc fails, this is needed for the
search callback

metze
(This used to be commit c868b8b7d7ee0424ed955f699543593aaa633e92)
2007-10-10 14:09:12 -05:00
Stefan Metzmacher
898f6f768f r16400: add more error checks
metze
(This used to be commit 779c51ad52bd54c10e208b108cb34500e542097f)
2007-10-10 14:09:12 -05:00
Stefan Metzmacher
59670b2f97 r16399: - split out pushing smb_fsinfo into a DATA_BLOB
- add error checks

metze
(This used to be commit 2aaca1631f4e9f312a8de506b21290b9452c2a43)
2007-10-10 14:09:12 -05:00
Stefan Metzmacher
f03e039e88 r16357: - start get rid of void parsing functions
- there will more changes come but I want to do them in
  relative small chunks

metze
(This used to be commit d021a8b3ee986194fbfddfc096edb715b01dafe5)
2007-10-10 14:09:12 -05:00
Stefan Metzmacher
594ae8f9e1 r16023: we don't need a global variable here...
noticed by the Mac OS 10 linker

metze
(This used to be commit 5928112cbc004f59660c8131abccc0f4933c2da3)
2007-10-10 14:08:51 -05:00
Andrew Tridgell
92acfc0799 r15855: more talloc_set_destructor() typesafe fixes. nearly done ...
(This used to be commit 396d82a231b6e3a91178db08b706626d4d4b420c)
2007-10-10 14:08:33 -05:00
Andrew Tridgell
03e7d37461 r15827: fixed a spelling error
(This used to be commit 801357af2ef80fe270750c084a78142711ae9e6c)
2007-10-10 14:08:29 -05:00
Stefan Metzmacher
184c28844d r15803: the SMB2 server gives NT_STATUS_NOT_FOUND instead of NT_STATUS_INVALID_HANDLE
metze
(This used to be commit aa98aad0975e59fc8cf56c624f728b33ab54e099)
2007-10-10 14:08:25 -05:00
Stefan Metzmacher
c51dfa7926 r15802: merge tridge's fix to the SMB2 server
metze
(This used to be commit 2ea15e9d28bca358989a565576ea7e8d9462e924)
2007-10-10 14:08:24 -05:00
Andrew Tridgell
f6c9fbbc50 r15799: fixed the problem with BASE-DISCONNECT after the recent memory leak
was fixed
(This used to be commit 09a9c7fdff8f3cc8d2a98228cede4f8af41a08eb)
2007-10-10 14:08:22 -05:00
Andrew Tridgell
00e772d747 r15796: this talloc_reference() was causing a memory leak on every NTVFS
request. The problem is that the talloc_free() in
smbsrv_send_reply_nosign() frees this reference, but doesn't free the
memory iself, thus leaving it attached to the connection context.

Metze, what was the idea behind this reference? If we need it, then we
need a corresponding talloc_free() to go with it.
(This used to be commit 2e105a32c78384b16a0e6a6dc8ff504593afef2e)
2007-10-10 14:08:21 -05:00
Stefan Metzmacher
6ba94bb12f r15771: this should be a o32s32 blob
metze
(This used to be commit fdfa6dcc97b6f7d61159497df2e214163d308649)
2007-10-10 14:08:17 -05:00
Stefan Metzmacher
1911475976 r15770: when there's a dynamic body, we need to send the first byte even if the
dynamic size if 0

metze
(This used to be commit c7e8e79d75fd53fa37e9220e5bc9cac7ab574ff6)
2007-10-10 14:08:16 -05:00