summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_ioctl.c
AgeCommit message (Collapse)AuthorFilesLines
2013-01-16smb2_ioctl: remove ioctl error response assumptionsDavid Disseldorp1-17/+57
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-16smb2_ioctl: split ioctl handler code on device typeDavid Disseldorp1-355/+20
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-16smb2_ioctl: split ioctl handlers into separate funtionsDavid Disseldorp1-154/+173
Reviewed by: Jeremy Allison <jra@samba.org>
2012-08-05s3:smb2_ioctl: make use of SMBD_SMB2_* macrosStefan Metzmacher1-8/+6
metze
2012-07-25s3:smb2_ioctl: fix GUID_compare() check in FSCTL_VALIDATE_NEGOTIATE_INFOStefan Metzmacher1-1/+1
metze
2012-07-25s3:smb2_ioctl: allow clients to send padding at the end of ↵Stefan Metzmacher1-1/+1
FSCTL_VALIDATE_NEGOTIATE_INFO metze
2012-07-25s3:smb2_ioctl: remove FSCTL_VALIDATE_NEGOTIATE_INFO_224 implementationStefan Metzmacher1-77/+0
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-06-15s3:smbd: change smb2_ioctl.c to use fsp_fnum_dbg() for fsp->fnum logging.Michael Adam1-2/+2
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-15s3:smbd: use FNUM_FIELD_INVALID instead of literal -1Michael Adam1-1/+1
This is in preparation of changing fnum to uint64_t Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-10s3:smb2_ioctl: make use of file_fsp_smb2()Stefan Metzmacher1-30/+12
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-05-29s3:smb2_ioctl: verify credit chargeStefan Metzmacher1-0/+25
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-29s3:smb2_ioctl: add more validation checksStefan Metzmacher1-6/+67
metze
2012-05-29s3:smb2_ioctl: add some more validation checksStefan Metzmacher1-7/+36
Based on a patch from Christian Ambach <ambi@samba.org>. metze
2012-05-23s3:smb2_server: make use of nt_status_np_pipe()Stefan Metzmacher1-3/+9
metze
2012-05-23s3:smbd: use nt_status_np_pipe for smb1Stefan Metzmacher1-0/+2
metze
2012-05-21s3:smb2_ioctl: Fix Coverity ID 701771 Uninitialized scalar variableStefan Metzmacher1-0/+10
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon May 21 19:27:44 CEST 2012 on sn-devel-104
2012-05-12s3:smb2_ioctl: implement FSCTL_VALIDATE_NEGOTIATE_INFOStefan Metzmacher1-0/+86
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat May 12 02:50:42 CEST 2012 on sn-devel-104
2012-05-12s3:smb2_ioctl: implement FSCTL_VALIDATE_NEGOTIATE_INFO_224Stefan Metzmacher1-0/+73
metze
2012-05-11s3:smb2_ioctl: allow functions to disconnect the smb connectionStefan Metzmacher1-3/+18
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri May 11 20:15:37 CEST 2012 on sn-devel-104
2012-05-11s3:smb2_ioctl: FSCTL_SRV_ENUMERATE_SNAPSHOTS is handles in SMB_VFS_FSCTL()Stefan Metzmacher1-125/+0
metze
2012-05-11s3:smb2_ioctl: call SMB_VFS_FSCTL() as fallback for non SMB2 specific functionsStefan Metzmacher1-4/+33
metze
2012-02-18Fix a bunch of "unused variable" warnings.Jeremy Allison1-3/+0
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 18 06:22:40 CET 2012 on sn-devel-104
2011-12-12s3:smb2_server: use sconn->ev_ctx instead of sconn->smb2.event_ctxStefan Metzmacher1-2/+2
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Dec 12 16:08:59 CET 2011 on sn-devel-104
2011-11-15s3:smb2_ioctl: STATUS_PENDING is defered by 1 millisecond for SMB2_IOCTLStefan Metzmacher1-1/+1
metze
2011-11-15s3:smb2_server: pass explicit defer_times to smbd_smb2_request_pending_queue()Stefan Metzmacher1-1/+1
metze
2011-09-29s3-smb2_server: fix ioctl InputOffset checkingDavid Disseldorp1-1/+10
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-07s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_ioctl.cStefan Metzmacher1-13/+5
metze
2011-06-24s3:smb2_ioctl/FSCTL_PIPE_TRANSCEIVE: generate STATUS_BUFFER_OVERFLOW if ↵Stefan Metzmacher1-0/+5
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-19s3: Fix Coverity ID 2582: FORWARD_NULLVolker Lendecke1-0/+5
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 19 20:46:43 CEST 2011 on sn-devel-104
2011-06-09s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett1-1/+1
Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
2011-05-31s3: Support shadow copy display over SMB2Volker Lendecke1-0/+121
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue May 31 12:53:10 CEST 2011 on sn-devel-104
2011-05-30s3: Add ioctl code to smbd_smb2_ioctl_send debugVolker Lendecke1-2/+3
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon May 30 12:47:27 CEST 2011 on sn-devel-104
2011-05-02s3-proto: move more rpc_server prototypes out of proto.hGünther Deschner1-0/+1
Guenther
2011-04-29s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner1-0/+1
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
2011-03-30s3: include smbd/smbd.h where needed.Günther Deschner1-0/+1
Guenther
2011-03-24charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell1-1/+1
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
2010-05-19(Finally) fix bug #7158 - SMB2 connection resets during IOZone tests from ↵Jeremy Allison1-1/+1
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-04-27Don't return a potentially uninitialized NT_STATUS. We can now see user ↵Jeremy Allison1-1/+1
lists in Windows ACLs. Jeremy.
2010-04-27Add debug statements so I can track the flow of RPC data.Jeremy Allison1-2/+27
Jeremy.
2009-08-17s3:smbd: implement SMB2 Cancel correctly.Stefan Metzmacher1-5/+1
metze
2009-08-12libcli: move some common SMB and SMB2 stuff into libcli/smb/Stefan Metzmacher1-1/+1
This will hold code that's shared between source3 and source4. metze
2009-08-08s3:smbd: rename conn => sconn for smbd_server_connection structsStefan Metzmacher1-5/+5
This should avoid confusion between smbd_server_connection and connection_struct variables. metze
2009-07-24Fix a few uninitialized variable warningsVolker Lendecke1-1/+1
I know those warnings are bogus, but both Coverity and gcc don't get it.
2009-06-24s3:smbd: send SMB2 interim responses for async callsStefan Metzmacher1-0/+5
metze
2009-06-09s3:smbd: skip file handle checks for SMB2 compounded requestsStefan Metzmacher1-2/+4
metze
2009-06-06s3:smbd: FSCTL_PIPE_TRANSCEIVE on a none IPC$ share should give NOT_SUPPORTEDStefan Metzmacher1-1/+1
metze
2009-06-06s3:smbd: return the same things as Windows 7 for SMB2 Ioctl responsesStefan Metzmacher1-7/+23
metze
2009-06-05s3:smbd: fix the build in smb2_ioctl.cStefan Metzmacher1-1/+1
metze
2009-06-05s3:smbd: add support for SMB2 Ioctl FSCTL_DFS_GET_REFERRALSStefan Metzmacher1-0/+74
metze
2009-06-05s3:smbd: add support for STATUS_BUFFER_OVERFLOW to SMB2 IoctlStefan Metzmacher1-5/+10
metze