Stefan Metzmacher
4a07b14cea
s3:smb2_server: pass smbXsrv_connection to smbd_server_connection_terminate*()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
2014-08-06 09:51:13 +02:00
Stefan Metzmacher
a6ee7ce31a
s3:smb2_ioctl: make use of smbd_smb2_generate_outbody()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2014-03-05 13:59:21 -08:00
David Disseldorp
65983aac12
smb2_ioctl: remove ioctl error response assumptions
...
MS-SMB2 3.3.4.4 documents cases where a ntstatus indicating an error
should not be considered a failure. In such a case the output data
buffer should be sent to the client rather than an error response
packet.
Add a new fsctl copy_chunk test to confirm field limits are sent back
in response to an oversize chunk request.
Reviewed by: Jeremy Allison <jra@samba.org>
2013-01-16 23:15:07 +01:00
David Disseldorp
14bd6c8b09
smb2_ioctl: split ioctl handler code on device type
...
Add per device type ioctl handler source files for FSCTL_DFS,
FSCTL_FILESYSTEM, FSCTL_NAMED_PIPE and FSCTL_NETWORK_FILESYSTEM.
Reviewed by: Jeremy Allison <jra@samba.org>
2013-01-16 23:15:06 +01:00
David Disseldorp
958b21c28d
smb2_ioctl: split ioctl handlers into separate funtions
...
Reviewed by: Jeremy Allison <jra@samba.org>
2013-01-16 23:15:06 +01:00
Stefan Metzmacher
47c67f2eac
s3:smb2_ioctl: make use of SMBD_SMB2_* macros
...
metze
2012-08-05 20:55:40 +02:00
Stefan Metzmacher
859e5be070
s3:smb2_ioctl: fix GUID_compare() check in FSCTL_VALIDATE_NEGOTIATE_INFO
...
metze
2012-07-25 23:32:18 +02:00
Stefan Metzmacher
3a85737191
s3:smb2_ioctl: allow clients to send padding at the end of FSCTL_VALIDATE_NEGOTIATE_INFO
...
metze
2012-07-25 23:31:02 +02:00
Stefan Metzmacher
3cce5214f9
s3:smb2_ioctl: remove FSCTL_VALIDATE_NEGOTIATE_INFO_224 implementation
...
Only Windows8 Beta uses this and it's broken, the client send wrong
capabilities. Just returning an error seems to be fine for the Windows8 Beta
client.
metze
2012-07-25 23:29:28 +02:00
Michael Adam
7738b574c2
s3:smbd: change smb2_ioctl.c to use fsp_fnum_dbg() for fsp->fnum logging.
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-15 03:28:15 +02:00
Michael Adam
5d2af68a25
s3:smbd: use FNUM_FIELD_INVALID instead of literal -1
...
This is in preparation of changing fnum to uint64_t
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-15 03:28:13 +02:00
Stefan Metzmacher
046daccba5
s3:smb2_ioctl: make use of file_fsp_smb2()
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Jun 10 01:10:15 CEST 2012 on sn-devel-104
2012-06-10 01:10:14 +02:00
Stefan Metzmacher
cee146ff7c
s3:smb2_ioctl: verify credit charge
...
Based on a patch from Christian Ambach <ambi@samba.org>.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 29 18:55:29 CEST 2012 on sn-devel-104
2012-05-29 18:55:29 +02:00
Stefan Metzmacher
8b4e677720
s3:smb2_ioctl: add more validation checks
...
metze
2012-05-29 17:02:13 +02:00
Stefan Metzmacher
4ac57a3c96
s3:smb2_ioctl: add some more validation checks
...
Based on a patch from Christian Ambach <ambi@samba.org>.
metze
2012-05-29 17:02:13 +02:00
Stefan Metzmacher
a0c9a291e7
s3:smb2_server: make use of nt_status_np_pipe()
...
metze
2012-05-23 20:03:09 +02:00
Stefan Metzmacher
d595d2e5af
s3:smbd: use nt_status_np_pipe for smb1
...
metze
2012-05-23 20:03:08 +02:00
Stefan Metzmacher
ce11eb5b94
s3:smb2_ioctl: Fix Coverity ID 701771 Uninitialized scalar variable
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon May 21 19:27:44 CEST 2012 on sn-devel-104
2012-05-21 19:27:43 +02:00
Stefan Metzmacher
212e805507
s3:smb2_ioctl: implement FSCTL_VALIDATE_NEGOTIATE_INFO
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat May 12 02:50:42 CEST 2012 on sn-devel-104
2012-05-12 02:50:42 +02:00
Stefan Metzmacher
8963930974
s3:smb2_ioctl: implement FSCTL_VALIDATE_NEGOTIATE_INFO_224
...
metze
2012-05-12 01:01:35 +02:00
Stefan Metzmacher
c11c4df762
s3:smb2_ioctl: allow functions to disconnect the smb connection
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri May 11 20:15:37 CEST 2012 on sn-devel-104
2012-05-11 20:15:37 +02:00
Stefan Metzmacher
739bd25fe0
s3:smb2_ioctl: FSCTL_SRV_ENUMERATE_SNAPSHOTS is handles in SMB_VFS_FSCTL()
...
metze
2012-05-11 18:19:51 +02:00
Stefan Metzmacher
5e998b805f
s3:smb2_ioctl: call SMB_VFS_FSCTL() as fallback for non SMB2 specific functions
...
metze
2012-05-11 18:19:50 +02:00
Jeremy Allison
21528da9cd
Fix a bunch of "unused variable" warnings.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Feb 18 06:22:40 CET 2012 on sn-devel-104
2012-02-18 06:22:40 +01:00
Stefan Metzmacher
763fe4216b
s3:smb2_server: use sconn->ev_ctx instead of sconn->smb2.event_ctx
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Dec 12 16:08:59 CET 2011 on sn-devel-104
2011-12-12 16:08:59 +01:00
Stefan Metzmacher
0cd67698ca
s3:smb2_ioctl: STATUS_PENDING is defered by 1 millisecond for SMB2_IOCTL
...
metze
2011-11-15 17:14:13 +01:00
Stefan Metzmacher
88dd90d928
s3:smb2_server: pass explicit defer_times to smbd_smb2_request_pending_queue()
...
metze
2011-11-15 17:14:13 +01:00
David Disseldorp
dbcd59f46b
s3-smb2_server: fix ioctl InputOffset checking
...
Currently the InputOffset is always check to point to the input data
buffer, regardless of whether input data is present.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-09-29 13:14:21 +02:00
Stefan Metzmacher
29b3601c02
s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_ioctl.c
...
metze
2011-09-07 10:38:06 +02:00
Stefan Metzmacher
2bb325ad91
s3:smb2_ioctl/FSCTL_PIPE_TRANSCEIVE: generate STATUS_BUFFER_OVERFLOW if needed (bug #8260 )
...
This should fix DCERPC responses with fragments larger than 1024 bytes.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jun 24 11:25:36 CEST 2011 on sn-devel-104
2011-06-24 11:25:36 +02:00
Volker Lendecke
5290faca7a
s3: Fix Coverity ID 2582: FORWARD_NULL
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jun 19 20:46:43 CEST 2011 on sn-devel-104
2011-06-19 20:46:43 +02:00
Andrew Bartlett
ad0a07c531
s3-talloc Change TALLOC_ZERO_P() to talloc_zero()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_ZERO_P isn't standard talloc.
2011-06-09 12:40:08 +02:00
Volker Lendecke
0fcafbf69b
s3: Support shadow copy display over SMB2
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue May 31 12:53:10 CEST 2011 on sn-devel-104
2011-05-31 12:53:10 +02:00
Volker Lendecke
bcc08dcc52
s3: Add ioctl code to smbd_smb2_ioctl_send debug
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon May 30 12:47:27 CEST 2011 on sn-devel-104
2011-05-30 12:47:27 +02:00
Günther Deschner
047d8c073b
s3-proto: move more rpc_server prototypes out of proto.h
...
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
50883cfeb4
s3-tevent: only include ../lib/util/tevent wrappers where needed.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
2011-04-29 14:00:30 +02:00
Günther Deschner
8c24ebf371
s3: include smbd/smbd.h where needed.
...
Guenther
2011-03-30 01:13:08 +02:00
Andrew Tridgell
15e84a9a09
charcnv: removed the allow_badcharcnv and allow_bad_conv options to convert_string*()
...
we shouldn't accept bad multi-byte strings, it just hides problems
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
2011-03-24 01:47:26 +01:00
Jeremy Allison
af44593555
(Finally) fix bug #7158 - SMB2 connection resets during IOZone tests from 64-bit Vista client
...
It turns out that the persistent handles are used by the Microsoft
redirector to index files on oplock break requests. So even if we
don't do durable handles (yet) we must set the persistent handle
on create. For now just use the same handle value as we use for
volatile.
Jeremy.
2010-05-19 19:28:26 -07:00
Jeremy Allison
4d1f0436bd
Don't return a potentially uninitialized NT_STATUS. We can now see user lists in Windows ACLs.
...
Jeremy.
2010-04-27 17:09:40 -07:00
Jeremy Allison
33256e41e1
Add debug statements so I can track the flow of RPC data.
...
Jeremy.
2010-04-27 17:07:44 -07:00
Stefan Metzmacher
d60f049eaf
s3:smbd: implement SMB2 Cancel correctly.
...
metze
2009-08-17 09:25:45 +02:00
Stefan Metzmacher
1df883aa39
libcli: move some common SMB and SMB2 stuff into libcli/smb/
...
This will hold code that's shared between source3 and source4.
metze
2009-08-12 18:28:32 +02:00
Stefan Metzmacher
9aa1d25907
s3:smbd: rename conn => sconn for smbd_server_connection structs
...
This should avoid confusion between smbd_server_connection
and connection_struct variables.
metze
2009-08-08 10:48:39 +02:00
Volker Lendecke
79fd60dd38
Fix a few uninitialized variable warnings
...
I know those warnings are bogus, but both Coverity and gcc don't get it.
2009-07-24 10:23:04 -04:00
Stefan Metzmacher
b7ea2740d5
s3:smbd: send SMB2 interim responses for async calls
...
metze
2009-06-24 21:04:57 +02:00
Stefan Metzmacher
c8b3030f40
s3:smbd: skip file handle checks for SMB2 compounded requests
...
metze
2009-06-09 19:51:02 +02:00
Stefan Metzmacher
0e261d0e9c
s3:smbd: FSCTL_PIPE_TRANSCEIVE on a none IPC$ share should give NOT_SUPPORTED
...
metze
2009-06-06 11:01:44 +02:00
Stefan Metzmacher
21ac549e96
s3:smbd: return the same things as Windows 7 for SMB2 Ioctl responses
...
metze
2009-06-06 11:01:43 +02:00
Stefan Metzmacher
b25227a177
s3:smbd: fix the build in smb2_ioctl.c
...
metze
2009-06-05 21:05:40 +02:00