Brian Cox
|
3481d2622a
|
Fix another leak (via valgrind), this time in cCryptoArchive
|
2017-08-26 16:10:12 -07:00 |
brc0x1
|
79933005b7
|
Switch to rbegin() since std::string::back() is a C++11-ism
|
2017-08-25 08:12:20 -07:00 |
Brian Cox
|
236d67b941
|
Sort out a valgrind issue w/ handling TEMPDIRECTORY paths. Clean up formatting in twcmdline's FillOutConfigInfo().
|
2017-08-26 10:07:27 -07:00 |
brc0x1
|
92580983ec
|
Remove more leakage in cHashTable & policy parser
|
2017-08-25 04:43:52 -07:00 |
Brian Cox
|
265bc4701e
|
Turn #ifdef YACC_WINDOWS to #if 0 to make sure untested & unused code stays unused.
|
2017-08-25 21:37:15 -07:00 |
Brian Cox
|
dbc48d0326
|
Merge branch 'dev/next' of https://github.com/Tripwire/tripwire-open-source into dev/next
|
2017-08-25 19:02:30 -07:00 |
Brian Cox
|
f4263cf2b8
|
Comment out some #line directives in twparser, since they confuse gcov
|
2017-08-25 19:00:39 -07:00 |
Brian Cox
|
55020401d9
|
Fix a few simple leaks inside twtest; fix some file permissions that got set wrong in last commit
|
2017-08-25 18:28:09 -07:00 |
Brian Cox
|
b3bcdbbcd9
|
Fix low hanging fruit items from valgrind memcheck results, mostly array deletes
|
2017-08-25 12:36:15 -07:00 |
brc0x1
|
8cec86246f
|
Fix build issues cross compiling for RISC OS (haven't verified we actually work yet, though); fix a couple of build issues left over from recent test-dir changes to twtest
|
2017-08-24 19:20:40 -07:00 |
Brian Cox
|
bd3b071e1b
|
ifdef out some unused methods in our HAVAL impl.
|
2017-08-24 00:57:11 -07:00 |
Brian Cox
|
d0b9b03561
|
Also tweak unit tests that dropped files in working directory to use our test data dir instead
|
2017-08-23 23:54:18 -07:00 |
Brian Cox
|
f5e76827be
|
Robustify symlink reading in cFSPropCalc, & add a unit test for it. Tweak other unit tests to use a test directory we control, rather than dumping stuff in /tmp
|
2017-08-23 23:36:21 -07:00 |
Brian Cox
|
fafa681bce
|
Fix dbupdate secure-mode test, add a case for updating db twice w/ same report, clean up twtools methods a bit more.
|
2017-08-23 17:58:12 -07:00 |
Brian Cox
|
01e25eb493
|
Remove a couple of unused FSServices methods
|
2017-08-19 20:38:57 -07:00 |
Brian Cox
|
97a2d44481
|
Disable incomplete impl for long property names, but don't remove it in case we want to finish it someday. This ensures that '&unimplemented' is not recognized as a valid property name in policy files.
|
2017-08-19 20:13:07 -07:00 |
Brian Cox
|
6582fb77fb
|
Remove a bunch of unused methods in cTWUtil
|
2017-08-19 19:54:35 -07:00 |
Brian Cox
|
dc943880de
|
Add more bad policy test cases; split good & bad policies into separate tests
|
2017-08-17 21:26:51 -07:00 |
Brian Cox
|
b4e530b40f
|
Clean up create-policy acceptance test; add a dir for bad policy text files (expected to fail) & add the first one, which is just a zero-byte file.
|
2017-08-17 00:17:28 -07:00 |
Brian Cox
|
72f042644b
|
Add test-harness test for policy creation; among other things it tries the policy files in src/parser/testfiles, plus some other test cases. Updated one of the test files so user doesn't need to hand edit it before use.
|
2017-08-09 23:55:30 -07:00 |
Brian Cox
|
85fcbb1371
|
Add IC test cases for named severity, ignored props, & email reporting
|
2017-08-09 19:39:03 -07:00 |
Brian Cox
|
4cdb384445
|
gcov revealed that a few unit tests weren't actually being run, so fixing those, & tweak exception handling in other tests to be more uniform (since we catch everything at the test harness level now)
|
2017-08-06 18:55:52 -07:00 |
Brian Cox
|
f02e2c10b5
|
Add new test-harness tests to exercise various IC mode options, plus tripwire help & version modes
|
2017-08-05 18:05:21 -07:00 |
Brian Cox
|
db60f15f23
|
Fix misspelling of 'UNKNOWN' in a constant name; add a missing bracket in twprint print-db mode help
|
2017-08-04 23:14:54 -07:00 |
Brian Cox
|
121ccea9b5
|
Add a siggen test-harness test to cover various options that aren't covered elsewhere. Like the twadmin & twprint tests added in the last commit, this was motivated by gcov results showing that a 'make check' was missing a bunch of code paths, particularly around command line args and error handling.
|
2017-08-04 00:16:43 -07:00 |
Brian Cox
|
a6c796a501
|
Add new twadmin & twprint test-harness tests, to exercise modes, options & errors that aren't covered elsewhere. Update twtools module with additional methods these new tests need.
|
2017-08-03 23:35:53 -07:00 |
Brian Cox
|
d8e323e186
|
Rename 2038 epoch check to something more accurate & less alarming than 'TimeBombExploded' (sheesh), and only bother with it if time_t is 32 bits.
|
2017-07-31 18:49:36 -07:00 |
Brian Cox
|
24dba1b374
|
Remove or disable a little dead code uncovered by gcov
|
2017-07-28 20:15:50 -07:00 |
Brian Cox
|
148a5e38d4
|
A bit more urandom cleanup
|
2017-07-19 23:02:13 -07:00 |
Brian Cox
|
5757a53d61
|
Simplify urandom usage, & keep device open between uses
|
2017-07-17 22:35:17 -07:00 |
Brian Cox
|
60fede7678
|
Tweak device random stuff for Linux
|
2017-07-15 22:59:50 -07:00 |
Brian Cox
|
eec812814a
|
Use RNG device(s) if available (experimental)
|
2017-07-15 18:10:42 -07:00 |
Brian Cox
|
b26422fa07
|
If an exception throws out of an IC, catch it & add to the report file instead of just falling over.
|
2017-07-09 10:10:16 -07:00 |
Brian Cox
|
2fc9faaee1
|
remove a backup file I hadn't meant to commit
|
2017-07-09 00:11:05 -07:00 |
Brian Cox
|
180bf761e0
|
Buildsys files regenerated with automake 1.15.1, with no exciting new features
|
2017-07-08 22:18:04 -07:00 |
Brian Cox
|
dbc00a2ed4
|
Fix logic error in cFCOPropVector::isExtended(), which only manifests with large prop vectors we currently won't see in the wild. Exposed by intermittently failing test in fcopropvector_t.cpp circa line 132, which now passes reliably on platforms where it used to fail.
|
2017-07-08 19:51:23 -07:00 |
Brian Cox
|
def126e190
|
aclocal.m4 got regenerated by automake 1.15.1, though it actually only updated the version number & copyright year
|
2017-07-08 19:49:22 -07:00 |
Brian Cox
|
ad9a79a84a
|
Add '.' to test-harness @INC path, since latest Perl 5 apparently now excludes it by default.
|
2017-07-08 19:47:49 -07:00 |
Brian Cox
|
65d97e2892
|
Rework fileutil_t test to not require /etc/hosts; tweak twutil_t test to work properly if run as root
|
2017-07-08 16:29:34 -07:00 |
Brian Cox
|
122010acc2
|
In examine-encryption mode, say 'Unknown' & exit w/ nonzero value if can't find a keyfile that goes with the file being examined
|
2017-07-08 15:18:58 -07:00 |
Brian Cox
|
4176c1db12
|
Add a new test-harness test to exercise twadmin change-passphrases mode
|
2017-06-28 20:05:52 -07:00 |
Brian Cox
|
73a8f0e59b
|
Add a test-harness that does a happy path thru the twadmin file crypto modes.
|
2017-06-25 14:48:56 -07:00 |
Brian Cox
|
60b24b0201
|
Add a test-harness test for policy updates, & tidy up some existing test code
|
2017-06-24 10:57:18 -07:00 |
Brian Cox
|
1ffe02226b
|
Bump version to 2.4.3.6
|
2017-06-22 17:45:41 -07:00 |
Brian Cox
|
54b3b6a2c2
|
Fix a few more copyright years
|
2017-04-25 18:52:26 -07:00 |
Brian Cox
|
dae64c48ed
|
Update copyright years
|
2017-04-25 18:31:11 -07:00 |
Brian Cox
|
b1f0ed4b71
|
Add an email reporting test, which runs tripwire --test mode & verifies the required mail header fields look right. This test only uses the sendmail (pipe) mailmethod, since I'm not sure how to automate SMTP testing in our Perl framework.
|
2017-04-24 22:44:03 -07:00 |
Brian Cox
|
cdfb2096c5
|
Fixes for the Perl acceptance test suite: Enhance reporting to show total/pass/fail/skip tests, fix DB Update tests that were failing silently, fix 'hash check' tests that were passing incorrectly even if md5sum wasn't present, add a sha1 hash test.
|
2017-04-23 22:52:32 -07:00 |
Brian Cox
|
47c9861baa
|
Clean up various unit test TODOs, including re-enabling some test code that had been ifdef'd out; improve reporting of failures and how many actual tests were run
|
2017-04-19 23:37:35 -07:00 |
Brian Cox
|
5a425591ce
|
Redo hierdatabase & dbdatasource unit tests so they do something useful; add sanity checks to cBlockRecordFile::FindRoomForData and cDbDataSourceIter::SetFCOData, the need for these was exposed by the new tests. Also update debug-only DB Explore mode with a few more commands
|
2017-04-19 20:20:08 -07:00 |