summaryrefslogtreecommitdiffstats
path: root/source/utils/torture.c
Commit message (Collapse)AuthorAgeFilesLines
* event log update, netsessenum, netconnenum update.Luke Leighton1999-08-181-2/+2
|
* safe string error reporting functions (found a potential buffer overflowLuke Leighton1999-06-241-1/+1
| | | | of a pstrcpy into an fstring).
* variation of random SMBtrans2. random delays in between reconnectionsLuke Leighton1999-05-071-10/+12
| | | | | increased. size of large random buffer decreased. number of reconnection attempts increased.
* refinement of random ipc$ SMBtrans torture test. send requests, andLuke Leighton1999-02-111-4/+58
| | | | don't wait for responses :-)
* use jeremy's versions of the UNICODE routines.Luke Leighton1999-02-101-2/+2
|
* - group database API. oops and oh dear, the threat has been carried out:Luke Leighton1998-11-171-153/+268
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the pre-alpha "domain group" etc parameters have disappeared. - interactive debug detection - re-added mem_man (andrew's memory management, detects memory corruption) - american spellings of "initialise" replaced with english spelling of "initialise". - started on "lookup_name()" and "lookup_sid()" functions. proper ones. - moved lots of functions around. created some modules of commonly used code. e.g the password file locking code, which is used in groupfile.c and aliasfile.c and smbpass.c - moved RID_TYPE_MASK up another bit. this is really unfortunate, but there is no other "fast" way to identify users from groups from aliases. i do not believe that this code saves us anything (the multipliers) and puts us at a disadvantage (reduces the useable rid space). the designers of NT aren't silly: if they can get away with a user- interface-speed LsaLookupNames / LsaLookupSids, then so can we. i spoke with isaac at the cifs conference, the only time for example that they do a security context check is on file create. certainly not on individual file reads / writes, which would drastically hit their performance and ours, too. - renamed myworkgroup to global_sam_name, amongst other things, when used in the rpc code. there is also a global_member_name, as we are always responsible for a SAM database, the scope of which is limited by the role of the machine (e.g if a member of a workgroup, your SAM is for _local_ logins only, and its name is the name of your server. you even still have a SID. see LsaQueryInfoPolicy, levels 3 and 5). - updated functionality of groupname.c to be able to cope with names like DOMAIN\group and SERVER\alias. used this code to be able to do aliases as well as groups. this code may actually be better off being used in username mapping, too. - created a connect to serverlist function in clientgen.c and used it in password.c - initialisation in server.c depends on the role of the server. well, it does now. - rpctorture. smbtorture. EXERCISE EXTREME CAUTION.
* volker was concerned about unique inode numbers and smbsh. This set ofAndrew Tridgell1998-10-241-4/+5
| | | | | | changes uses the unique index number from a SMB_QUERY_FILE_ALL_INFO to try to provide inode numbers. If it is 0 then use the hash of the filename as before.
* fixed a connection bug in torture testAndrew Tridgell1998-10-201-11/+66
|
* added maxfid testAndrew Tridgell1998-10-161-11/+66
|
* dce/rpcLuke Leighton1998-10-081-3/+3
|
* - don't generate 0 params in tortureAndrew Tridgell1998-10-081-1/+1
| | | | - handle 0 params in ipc.c
* - fixed a bunch of warnings and minor errorsAndrew Tridgell1998-10-081-53/+37
| | | | | | - got smbtorture to compile - removed %D from some of lukes code - Luke, what is %D? it ain't portable anyway
* use 1 second resolution calls if possibleAndrew Tridgell1998-10-081-3/+3
|
* added lseek() support for directoriesAndrew Tridgell1998-10-031-2/+2
|
* some changes in smbtorture as a result of clientgen interface changesAndrew Tridgell1998-10-021-5/+5
| | | | | | | for smbwrapper note that Lukes client changes broke smbtorture. This doesn't fix it, but at least I didn't break it more than it was.
* Makefile.in: Fixed bug with continuation line causing proto to fail.Jeremy Allison1998-09-251-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added $(PROGS) $(SPROGS) as targets for make clean. acconfig.h: Added HAVE_IRIX_SPECIFIC_CAPABILITIES. configure.in: Added sys/capability.h header check. Added function checks for srandom random srand rand. Added HAVE_IRIX_SPECIFIC_CAPABILITIES test. includes.h: Added #include <sys/capability.h>. ntdomain.h: Moved struct acct_info into here from smb.h smb.h: Added KERNEL_OPLOCK_CAPABILITY define. Moved enum action_type into rpcclient.h Moved struct cli_state into client.h Moved struct nt_client_info, struct tar_client_info, struct client_info into rpcclient.h lib/genrand.c: Changed to use sys_random() & friends. lib/smbrun.c: Lose capabilities after fork. lib/system.c: Added set_process_capability(), set_inherited_process_capability() sys_random(), sys_srandom(). lib/util.c: Added Ander's EFBIG lock check to fcntl_lock for 64 bit access to an 32 bit mounted NFS filesystem. nmbd/nmbd.c: Changed to use sys_random() & friends. nmbd/nmbd_browsesync.c: Changed to use sys_random() & friends. passdb/ldap.c: Missed one pdb_encode_acct_ctrl call. passdb/passdb.c: Changed to Ander's code for ' ' characters. passdb/smbpass.c: Added Ander's code to reset ACB_PWNOTREQ. script/mkproto.awk: Added 'long' to prototypes. smbd/chgpasswd.c: Lose capabilities after fork. smbd/open.c: Do the mmap *after* the kernel oplock. smbd/oplock.c: Removed stub code from kernel oplock path. Added set_process_capability(), set_inherited_process_capability() calls. smbd/reply.c: Initialize count = 0, offset = 0. smbd/server.c: Added set_process_capability(), set_inherited_process_capability() calls. tests/summary.c: Ensure we have RANDOM or RAND. utils/smbpasswd.c: Added Ander's code to reset ACB_PWNOTREQ. utils/torture.c: Changed to use sys_random() & friends. Jeremy.
* tridge the destroyer returns!Andrew Tridgell1998-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | prompted by the interpret_security() dead code that Jean-Francois pointed out I added a make target "finddead" that finds potentially dead (ie. unused) code. It spat out 304 function names ... I went through these are deleted many of them, making others static (finddead also reports functions that are used only in the local file). in doing this I have almost certainly deleted some useful code. I may have even prevented compilation with some compile options. I apologise. I decided it was better to get rid of this code now and add back the one or two functions that are needed than to keep all this baggage. So, if I have done a bit too much "destroying" then let me know. Keep the swearing to a minimum :) One bit I didn't do is the ubibt code. Chris, can you look at that? Heaps of unused functions there. Can they be made static?
* some smbtorture hacks (random IPC calls)Andrew Tridgell1998-08-251-4/+60
|
* merge from the autoconf2 branch to the main branchAndrew Tridgell1998-07-291-3/+1
|
* This is a security audit change of the main source.Jeremy Allison1998-05-121-5/+5
| | | | | | | | | | | | | | | | | | It removed all ocurrences of the following functions : sprintf strcpy strcat The replacements are slprintf, safe_strcpy and safe_strcat. It should not be possible to use code in Samba that uses sprintf, strcpy or strcat, only the safe_equivalents. Once Andrew has fixed the slprintf implementation then this code will be moved back to the 1.9.18 code stream. Jeremy.
* clientgen.c: Changes 'cli_xxx_' calls to use the followingJeremy Allison1998-04-171-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | regularized parameter syntax: setup, setup_count, max_setup_count, params, params_count, max_params_count, data, data_count, max_data_count, (and if a reply is needed) *reply_params, *reply_data_len *reply_data, *reply_data_len This allows the pointers and the lengths that relate to these pointers to be next to each other in the parameter list. This makes seeing what you are passing to these functions much easier to see. Getting ready for adding the lib/rpc/client functions needed to do security=domain. torture.c: Fixed it so it uses / rather than \\ internally for the //machine/share syntax. Jeremy.
* some hacks to the torture codeAndrew Tridgell1998-04-121-1/+10
|
* This is *not* a big change (although it looks like one).Jeremy Allison1998-01-221-1/+1
| | | | | | | This is merely updating the Copyright statements from 1997 to 1998. It's a once a year thing :-). NO OTHER CHANGES WERE MADE. Jeremy.
* added cli_rmdir and cli_mkdirAndrew Tridgell1997-11-241-5/+44
| | | | | | | added test in smbtorture for the server updating the directory modify time when a file is added to a directory cleanup in smbtorture so no garbage files are left on the server
* added a SMB_QUERY_FILE_ALL_INFO test into smbtortureAndrew Tridgell1997-11-231-1/+14
| | | | W95 doesn't seem to support this call.
* added some QPATHINFO and QFILEINFO tests into smbtorture.Andrew Tridgell1997-11-231-0/+59
| | | | | This tests for things like midnight access times, sticky create times and word reversed INFO_STANDARD returns
* test SMBsetatr as wellAndrew Tridgell1997-11-231-4/+21
|
* added a test for the NT SMBgetatr bug in smbtortureAndrew Tridgell1997-11-231-1/+43
| | | | | | | | added support for choosing the protocol level in smbtorture (-m option) use -1 for null date in cli_close() get the attributes right in cli_open()
* added code to test the cli_NetServerEnum() function in clientgen.cAndrew Tridgell1997-11-111-0/+38
|
* Rolled back tree state to 11:59pm 8th November 1997 EST toJeremy Allison1997-11-101-4/+2
| | | | | remove problems. Jeremy
* attempting to mark up 32 bit error codes, needed for NT domains.Luke Leighton1997-11-091-2/+4
| | | | | | | | | | | | separated out smb server-mode password validation into a separate file. added called and calling netbios names to client gen state: referenced section in rfc1002.txt. created workstation trust account checking code in ntclient.c there might be a bug in reply_session_setup_andX. i indented and added { } around single-line if statements: the lm password checking code now doesn't look right (around the GUEST_SESSSETUP bits). *no code semantics have been changed by the indentation process*.
* a few more tests added, including one that tests whether the serverAndrew Tridgell1997-11-081-1/+157
| | | | | understand the full range of byte offsets in locking requests. Samba doesn't (due to the 31 bit limitation in fcntl locking)
* added two more sets of tests to the smbtorture test. The tests I addedAndrew Tridgell1997-11-081-52/+284
| | | | | | | | | | | | | | | | | are ones that I know Samba fails. They are: 1) correct support for retaining locks over a close (ie. the server must not use posix semantics) 2) support for lock timeouts 3) the server supports multiple locking contexts on the one SMB connection, distinguished by PID. 4) the server correctly fails overlapping locks made by the same PID (this goes against POSIX behaviour, which is why it is tricky to implement) 5) the server denies unlock requests by an incorrect client PID I've been discussing with Jeremy ways that we can re-implement the locking code to handle these correctly. This test code will be useful to see that we have got it right.
* no asm/signal.h for linux as this is not portableAndrew Tridgell1997-11-061-0/+4
| | | | | | add auto username from LOGNAME for smbtorture proto fix in ufc.c
* don't print the progress so often - it slows down the client too muchAndrew Tridgell1997-11-011-1/+3
|
* set O_CREAT on lock fileAndrew Tridgell1997-11-011-1/+2
|
* a simple SMB torture tester. This will allow us to evaluate lockingAndrew Tridgell1997-11-011-0/+316
techniques more accurately.