Ralph Boehme
9b2d281571
smbtorture: check required access for SMB2-GETINFO
...
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15153
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2022-08-23 11:52:29 +00:00
Stefan Metzmacher
8a5828de2b
s4:torture/smb2: add smb2.getinfo.normalized test
...
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13919
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2019-05-01 17:22:26 +00:00
Volker Lendecke
aac203907f
libsmb: Rename InfoType from [MS-SMB2] according to the spec
...
This makes it easier to find this via internet search
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2019-04-01 17:58:16 +00:00
Andreas Schneider
0bcbec40bb
s4:torture: Use C99 initializers for file_levels in smb2 getinfo test
...
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2019-01-28 10:29:25 +01:00
Jeremy Allison
47d74639d9
s4: torture: Add a TALLOC_CTX * to torture_smb2_getinfo_init().
...
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
2017-05-05 15:52:14 +02:00
Günther Deschner
5bbaf81612
s4:torture:smb2 prefer torture_comment() to printf().
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
2016-09-07 12:09:17 +02:00
Günther Deschner
e9e109979c
s4:torture:smb2:getinfo: prefer torture_comment() to printf().
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
2016-09-07 12:09:16 +02:00
Uri Simchoni
7dc9f58206
seltest: implicit FILE_READ_DATA non-reporting
...
This test (passes against Windows Server 2012R2) shows
that the implicit FILE_READ_DATA that is added whenever
FILE_EXECUTE is granted, is not reported back when querying
the handle.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12149
Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2016-08-16 11:31:27 +02:00
David Disseldorp
97a2d83662
torture: test FS_SECTOR_SIZE_INFORMATION queries
...
The smb2.fsinfo test is run against ntvfs and s3fs. With both now
offering support for the FS_SECTOR_SIZE_INFORMATION query-info level,
it can be added to the existing level enumeration.
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2015-03-18 18:57:21 +01:00
Volker Lendecke
3a72cdb33a
torture: Remove an unused variable
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-10-06 13:56:24 +02:00
Volker Lendecke
960bd9a584
torture: Continue buffer check after NOT_IMPLEMENTED infolevels
...
Patch from the SDC plugfest. Not every implementation supports every
infolevel, and we want to be able to test buffersize error behaviour
for all supported infolevels
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-10-06 13:56:15 +02:00
Volker Lendecke
6e3650edd3
torture: Add buffercheck tests
...
Make sure we get the smb2 infolevel fixed portions right
I could not find correct #defines for the infolevels
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10106
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Aug 29 01:27:11 CEST 2013 on sn-devel-104
2013-08-29 01:27:11 +02:00
Volker Lendecke
3ddb77f7d8
torture: Split the fsinfo check into a separate test
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Aug 23 20:53:12 CEST 2013 on sn-devel-104
2013-08-23 20:53:12 +02:00
Volker Lendecke
e1edffc807
torture: Split the buffercheck into a separate test
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-08-23 09:48:51 -07:00
Volker Lendecke
8f96d48971
torture: Change smb2.getinfo into a suite
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-08-23 09:48:48 -07:00
Volker Lendecke
971b39bb10
torture: Remove an unused variable
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-08-23 09:48:37 -07:00
Gregor Beck
ee6cd3b84e
s4:torture: smb2.getinfo test return status of stream creation
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-07 10:57:27 +01:00
Gregor Beck
01774d65c2
s4:torture: avoid reporting error on failure of smb2.getinfo test
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Stefan Metzmacher
d3be108637
SMB2-GETINFO: test SMB2_ALL_EAS
...
metze
2009-07-15 10:57:32 +02:00
Jelmer Vernooij
23302413b3
Remove unused include param/param.h.
2008-10-24 16:37:56 +02:00
Andrew Tridgell
eb8634b2f0
check for requested buffer size in getinfo call
...
(This used to be commit ed8f16379d
)
2008-05-31 13:39:51 +10:00
Andrew Tridgell
61e78a2c61
minor cleanup in SMB2 getinfo test
...
(This used to be commit b139b47107
)
2008-05-22 14:50:36 +10:00
Andrew Tridgell
0e03c3aa89
disable the EAS level in SMB2-GETINFO test until we get some feedback
...
on how the alignment requirements have changed
(This used to be commit 2a474568c2
)
2008-02-18 14:55:30 +11:00
Jelmer Vernooij
ab69eb8d89
r26250: Avoid global_loadparm in a couple more places.
...
(This used to be commit 2c6b755309
)
2007-12-21 05:47:28 +01:00
Jelmer Vernooij
bbdfbf8d9d
r26238: Add a loadparm context parameter to torture_context, remove more uses of global_loadparm.
...
(This used to be commit a33a553054
)
2007-12-21 05:47:20 +01:00
Jelmer Vernooij
2151cde580
r25554: Convert last instances of BOOL, True and False to the standard types.
...
(This used to be commit 566aa14139
)
2007-10-10 15:07:55 -05:00
Jelmer Vernooij
60a1046c5c
r25430: Add the loadparm context to all parametric options.
...
(This used to be commit fd697d77c9
)
2007-10-10 15:07:31 -05:00
Jelmer Vernooij
98b57d5eb6
r25035: Fix some more warnings, use service pointer rather than service number in more places.
...
(This used to be commit df9cebcb97
)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
ffeee68e4b
r25026: Move param/param.h out of includes.h
...
(This used to be commit abe8349f9b
)
2007-10-10 15:05:38 -05:00
Andrew Tridgell
0479a2f1cb
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.
(This used to be commit fcf38a38ac
)
2007-10-10 14:59:12 -05:00
Jelmer Vernooij
a39f239cb2
r19392: Use torture_setting_* rather than lp_parm_* where possible.
...
(This used to be commit b28860978f
)
2007-10-10 14:21:24 -05:00
Stefan Metzmacher
2e56d833b4
r16739: test SMB2-GETINFO SMB2-SETINFO by make test
...
metze
(This used to be commit 0ebb25de56
)
2007-10-10 14:09:43 -05:00
Stefan Metzmacher
d584033c6c
r16737: if an error happens report it
...
metze
(This used to be commit 52ce898cf9
)
2007-10-10 14:09:42 -05:00
Jelmer Vernooij
909b111f58
r14720: Add torture_context argument to all torture tests
...
(This used to be commit 3c7a5ce291
)
2007-10-10 13:59:13 -05:00
Stefan Metzmacher
a1b295ed48
r14256: - rename smb_file -> smb_handle
...
- move it into the in/out substructs again
- allow file.path only on smb_fileinfo/smb_setfileinfo
metze
(This used to be commit be6d5298a2
)
2007-10-10 13:57:06 -05:00
Stefan Metzmacher
307e43bb56
r14173: change smb interface structures to always use
...
a union smb_file, to abtract
- const char *path fot qpathinfo and setpathinfo
- uint16_t fnum for SMB
- smb2_handle handle for SMB2
the idea is to later add a struct ntvfs_handle *ntvfs
so that the ntvfs subsystem don't need to know the difference between SMB and SMB2
metze
(This used to be commit 2ef3f59709
)
2007-10-10 13:56:57 -05:00
Stefan Metzmacher
1a53c1dc92
r13346: use private proto header files for the torture tests
...
metze
(This used to be commit 67837dbd2b
)
2007-10-10 13:51:47 -05:00
Jelmer Vernooij
d4de4c2d21
r12608: Remove some unused #include lines.
...
(This used to be commit 70e7449318
)
2007-10-10 13:49:03 -05:00
Andrew Tridgell
fc04e3e795
r11801: - added basic SMB2 find support
...
- added SMB2-SCANFIND test
- cleaned up continue flags in EAs and find requests
(This used to be commit 8792bc07d9
)
2007-10-10 13:46:29 -05:00
Andrew Tridgell
7d6f36682e
r11800: - filled in unknown fields in SMB2 all_info level
...
- allow setting of the ALL_EAS flags bits in SMB2 getinfo
(This used to be commit 8c7c54a46d
)
2007-10-10 13:46:29 -05:00
Andrew Tridgell
1692b2e571
r11776: no need to call out to SMB to setup test files for SMB2 any more
...
(This used to be commit dae70c5bae
)
2007-10-10 13:46:25 -05:00
Andrew Tridgell
eedb92ce72
r11758: unified the parse code for the SMB and SMB2 qfsinfo and qfileinfo calls
...
(This used to be commit ba897e537b
)
2007-10-10 13:46:23 -05:00
Andrew Tridgell
7a43b32c3b
r11755: added names for all of the SMB2 qfs info levels (they all map exactly
...
to equivalent SMB qfs levels)
(This used to be commit 4ce48d02aa
)
2007-10-10 13:46:23 -05:00
Andrew Tridgell
b51703baf1
r11730: added parsing and tests for a bunch more SMB2 getinfo levels
...
(This used to be commit ca65bf0235
)
2007-10-10 13:46:18 -05:00