source: trunk/docs/Changelog@ 376

Last change on this file since 376 was 375, checked in by katerina, 13 years ago

Documentation update.

File size: 95.5 KB
RevLine 
[367]13.0.0:
[373]2 * Add support for the inotify API
[375]3 * If --disable-shellexpand is used, also disable setting
4 the prelink/ps paths
[367]5 * Fix missing check_mask storage for glob pattern
6 * Add support for integer keys in zAVL
7 * Fix compiler warnings with gcc 4.6.1 (variables that get set
8 but then remain unused)
9 * Add more server-side debugging for IPv6
10 * Make kern_head compile with 3.x kernels
11
122.8.6 (20-09-2011):
[359]13 * Manual updated.
14 * Added an option LogmonDeadtime to avoid repetitive reporting
15 on correlated events.
[357]16 * Fix problems with timestamp handling in logfile correlation
17 (problem reported by D. Dearmore)
[356]18 * List the policy under which a directory/file is checked
[355]19 * Option to use a textfile with a list of files for update
[354]20 * Fix --enable-db-reload option (reported by David L.)
21 * Fix samhain_kmem compilation, need to compile under chosen
22 name if --enable-install-name is used (reported by David L.)
[352]23 * Fix uninitialized string in error message (reported by mimox)
24
[359]252.8.5a (16-06-2011):
[350]26 * Fix autolocal.m4 for new configure option
27
[359]282.8.5 (15-06-2011):
[350]29 * Detect non-working /dev/kmem in configure script, and fix
30 a bug in the samhain_kmem kernel module.
[349]31 * Fix wrong handler for LogmonMarkSeverity (reported by S. Chittenden)
[347]32 * Better protection against the 'intruder on server' scenario
33 pointed out by xrx. Add option to disable shell expansion in
34 configuration files, and check gpg signature earlier.
35 * Support /opt/local/bin in the Unix entropy gatherer (suggestion
36 by Sean Chittenden)
37 * Cache timeserver response for one second (suggestion by
38 Sean Chittenden)
39
[349]402.8.4a (11-05-2011):
[342]41 * Fix for compile error with --with-prelude
42 (reported by Sean Chittenden), missing regression test added
43 * Fix for compile error with --enable-udp (reported by Sean Chittenden),
44 missing regression test added
[341]45
[349]462.8.4 (30-04-2011):
[341]47 * Fix another reload bug in the log monitoring module
[333]48 * Add unit tests for IgnoreAdded/IgnoreDeleted configuration directives
49 * Fix deadlock after reload when compiled with --enable-login-watch
50 (reported by M. Teege and O. Cobanoglu)
51 * Fix compile error for samhain_hide.ko with recent kernel
52 * Include patch by J. Graumann to specify the location of the
53 secret keyring with samhainadmin.pl
[326]54 * Fix potential timeout problem in sh_sub_stat_int() and propagate the
55 error (issue reported by mtg)
56 * Add support for X-Forwarded-For in apache logfile parser, add
57 option 'RE{regex}' to insert arbitrary regex
[328]58 * New options PortcheckMinPort, PortcheckMaxPort for the open ports
59 check
[326]60
[333]612.8.3a (23-03-2011):
[323]62 * Fix two 'label at end of compound statement' errors on FreeBSD
63 (reported by David E. Thiel)
64
[333]652.8.3 (22-03-2011):
[321]66 * init scripts: load samhain_kmem.ko before samhain starts
67 * slib.c: eliminate mutex from sl_create_ticket()
68 * sh_entropy.c: move pthread usage out of child
69 * sh_hash.c, sh_pthread.c, sh_pthread.h: sh_hash_hashdelete()
[328]70 needs deadlock detection, may be called from within sh_hash_init()
[321]71 via atexit handler on error condition
72 * sh_suidchk.c, sh_calls.c, sh_calls.h: need a nosub version of lstat()
73 to use with relative path after chdir()
74 * samhain.c, sh_calls.c, sh_calls.h: only run (l)stat() in subprocess
75 after reading config file (to allow disabling)
76 * sh_unix.c: run sh_sub_kill() in parent after forking the daemon
[315]77 * fix zeroing of result from getnameinfo() (problem reported by Richard)
78 * fix spurious warnings about unsupported address family (reported
79 by N Silverman)
[328]80 * option to run lstat/stat in subprocess to avoid hanging on NFS mounts
[315]81 (off by default)
[312]82 * fix Windows/Cygwin compile error (reported by A. Schmidt)
83
[333]842.8.2 (16-02-2011):
[310]85 * add function to skip checksumming
86 * Fix missing check for recursion depth >= 0 if not IgnoreAll
87 * Fix hardcoded path for temp directory in deployment scripts
[309]88 * Fix bad compile on CentOS 4.8 with gcc 4.1.2
[310]89 * Fix minor bug in check_samhain.pl (pointed out by J.-S. Eon long ago)
[309]90
[333]912.8.1 (17-11-2010):
[307]92 * Document handling of missing files with secondary schedule
[305]93 * Fix incorrect handling of missing files when secondary schedule
94 is used (reported by Sergey)
[304]95 * Fix null pointer dereference in config parse handler for SetMailAlias
96 (reported by Sergey)
[303]97 * Fix incorrect memset() in sh_kern.c (passed struct by value...),
98 reported by Roman and Stefan
99 * Fix 'make install' to create user-defined directory
[300]100 * fix minor issues noticed by T. Luettgert (test code assumes port
101 0/tcp is unused, wrong ifdef order (without impact on compilation))
[299]102 * fix compile error on AIX 5.3 with --enable-login-watch,
103 reported by M. El Nahass (time.h missing in src/sh_login_track.c)
104
[307]1052.8.0 (01-11-2010):
[295]106 * Support IPv6
[294]107 * Add registry checking
108 * Use auditd records to find out who did it
109
[307]1102.7.2c (23-09-2010):
[294]111 * Fix uppercase hostname problem in client/server communication
[293]112
[294]113
[307]1142.7.2b (05-09-2010):
[292]115 * Fix compile errors on Solaris 10 (reported by A. Saheba)
116
[307]1172.7.2a (23-08-2010):
[291]118 * rewrote rijndaelKeySched() in a more conservative way to fix
119 compile problem on SLES 11.
120
[307]1212.7.2 (16-08-2010):
[290]122 * sh_utils.c: fixed an endianess issue that prevented cross-verification
123 of email signatures (reported by A. Zangerl)
[294]124 * sh_login_track.c: fix compiler warning (ignored return value
125 of fwrite)
126 * sh_readconf.c: fix comparison of SeverityUserX string
[290]127 (reported by max__)
128 * sh_processcheck.c: sh_prochk_set_maxpid: set retval on success
129 (reported by max__)
130 * fixed some compiler warnings on cygwin
[289]131 * sh_extern.c: As reported by T. Luettgert, gcc 4.4.4 on Fedora 13
132 will throw a warning if execve is called with a NULL argv pointer.
133 Need to provide a dummy argp[].
134
[307]1352.7.1 (07-06-2010):
[286]136 * samhain_kmem.c: fix compile problems
137 * fix problems with config file parser: increase max. line length,
138 support quoting/escaping of filenames (as in 'ls --quoting-style=c')
[285]139 * check for pcre_dfa_exec (not available in old versions
140 of libpcre, reported by Shinoj)
141 * patch to allow server to log client reports to prelude
142 (by J. Ventura)
143
[284]1442.7.0a (09-05-2010):
145 * fix /dev/kmem detection (reported by S. Clormann)
146
[282]1472.7.0 (01-05-2010):
[279]148 * sh_utmp.c, sh_login_track.c: additional login checks
149 * sh_unix.c: use SIGTTIN as alternative for SIGABRT
150 (SIGABRT seems not to work on AIX, reported by Peter)
151 * sh_utmp.c: fix compile error without pthreads (inotify_watch used)
152 * sh_kern.c, kern_head.c: fix some 64bit issues
153 * dnmalloc.c: fix compiler warning (ignored ret value)
154 * Fix LSB init script for kernel module
155 * samhain_kmem kernel module for /proc/kmem added
156
[282]1572.6.4 (22-03-2010):
[279]158 * Don't read proc_root_iops in sh_kern.c (Problem report
159 by H. R.)
160 * Logfile check can check output of shell commands
161 * Use data directory as default for logfile checkpoints
162 * Fix broken checkpoint save/restore for logfiles
[276]163
[282]1642.6.3 (10-03-2010):
[275]165 * Fix bug in mail module, recipients incorrectly flagged
166 as aliases, which breaks immediate mail for 'alert'
167 (reported by Jesse)
168
[282]1692.6.2 (28-01-2010):
[272]170 * Makefile.in: fix problem in deploy system caused
171 by adding build number for debs in 2.5.9 (reported
172 by roman)
173 * add option for per-rule email alias in log monitoring
174 module
175 * sh_readconf.c: make keywords case-independent
176 * sh_mail.c: on error, report full reply of mail server
177 * sh_mail.c: report smtp transcript at debug level
178 * make sure mail aliases are not emailed twice, and
179 recipients cannot be defined after aliasing them
[271]180 * handle named pipes in log monitoring module
181 (open in nonblocking mode, ignore read error if empty)
[270]182 * fix bug in the server function to probe for necessity
183 of configuration reload for client
184
[269]1852.6.1b (23-12-2009):
186 * fix missing include for sh_inotify.h in sh_inotify.c
187 (reported by Ack)
188
[268]1892.6.1a (22-12-2009):
190 * fix typo in code for older inotify versions without
191 inotify_init1(), reported by Forll
192
[265]1932.6.1 (21-12-2009):
194 * add a routine to log monitoring module to guess the proper year
195 for timestamps without year (standard syslog)
196 * add feature to automatically detect and report bursts of
197 similar messages in log monitoring module
198 * add feature to check for missing heartbeat messages in
199 log monitoring module
200 * cache UIDs/GIDs to reduce the number of lookups
[259]201 * use inotify to track login/logout (sh_inotify.c, sh_utmp.c)
[262]202 * support event correlation in log monitoring module
203 * make sure host matching is done in a case insensitive way
[263]204 (reported by Tracy)
205 * fix invalid use of mutex_mlock in src/sh_unix.c, function
206 sh_unix_count_mlock() (reported by Remco Landegge).
[262]207
[265]2082.6.0 (01-11-2009):
[258]209 * don't use statvfs() for process checking on FreeBSD
[257]210 * fix bug with parallel compilation of cutest in Makefile
211 * sh_mem.c: fix deadlock in debug-only code
[256]212 * Evaluate glob patterns for each run of file check
213 * Add compile option to disable compiling with SSP
214 * Run SUID check in seperate thread
215 * By default disable scanning ..namedfork/rsrc (deprecated by Apple)
216
[259]2172.5.10 (12-10-2009):
[252]218 * sh_suidchk.c: handle $HOME/.gvfs mount gracefully
219 * slib.c: fix race condition caused by closing a stream and the fd
220
[259]2212.5.9c (01-10-2009):
[251]222 * move stale file record error message closer to problem zone
223 * sh_port2proc.c: fix flawed logic for interpreting /proc/net/udp,tcp
224
[259]2252.5.9b (22-09-2009):
[248]226 * remove stale file record when creating handle, and raise diagnostic
227 error to find origin of stale record
[250]228 * sh_port2proc.c: check /proc/net/upd6 for IPv6-only UDP sockets
[248]229
[259]2302.5.9a (17-09-2009):
[247]231 * fixed a race condition in closing of file handles
232
2332.5.9 (11-09-2009):
[246]234 * added code to generate directory for pid file, since it
235 would get cleaned if /var/run is a tmpfs mount (problem
236 reported by M. Athanasiou)
[244]237 * fixed a bug that prevented reporting of user/executable path
238 for open UDP ports (issue reported by N. Rath)
[247]239 * added more debugging code
[244]240
[247]2412.5.8a (18-08-2009):
[242]242 * fixed a bug in sh_files.c that would prevent samhain from
243 running on MacOS X (reported by David)
244
[247]2452.5.8 (06-08-2009):
[240]246 * fixed a bug in the MX resolver routine which causes it to fail
247 sometimes (issue reported by N. Rath).
248 * fixed deadlock with mutex_listall in sh_nmail_test_recipients() if
249 error occurs within sh_nmail_flush (problem reported by N. Rath)
250
2512.5.7 (21-07-2009):
[239]252 * sh_userfiles.c: set userUids = NULL at reconfiguration (issue
253 reported by U. Melzer)
254 * if available, use %z to print timezone as hour offset from GMT
[238]255 in email date headers (problem reported by NP, solution suggested
256 by TimB).
[237]257 * eliminate C99-style comments (problem reported by
258 venkat)
259 * fix bad variable name for AC_CACHE_CHECK
[235]260 * fix potential deadlock when external programm is called
261 (problem reported by A. Dunkel)
262
[239]2632.5.6 (09-06-2009):
[231]264 * recognize fdesc filesystem on MacOS X for suid check (Problem
265 reported by David)
266
[234]2672.5.5 (01-05-2009):
[230]268 * fix some warnings from gcc 4.4 (strict aliasing)
269 * fix minor memory leak in process check
[229]270 * t-test1.c: change function names because of clashes with an
271 AIX system header file
[227]272 * fix warnings with -fstack-check (too large stack frames)
[226]273 * fix for incorrect handling of hostnames in database insertion
274 (reported by byron)
275
2762.5.4 (04-03-2009):
[225]277 * fix for incorrect input check in SRP implementation (discovered
278 by Thomas Ptacek)
[223]279 * option KernelCheckPCI to switch off check of PCI expansion ROMs
280
2812.5.3 (25-02-2009):
[221]282 * disable dnmalloc on MacOS X, doesn't work properly
283 * stat -> lstat in sh_unix_file_exists (OS X nameforks, report
284 by David)
[220]285 * Fix problem in standalone trustfile, does not work correctly on
286 group-writeable files (reported by David).
[219]287 * Option SetThrottle to throttle throughput for db download
288 * Option SetConnectionTimeout to configure the client connection
289 timeout configurable
[218]290 * Provide getrpcbynumber, getservbyname implementations
291 to avoid dependencies with static linkage
292 * Fix missing sh.host.(system|release|machine) on FreeBSD,
293 reported by D.Lowry
294 * New option SetMailPort to allow setting of SMTP port (patch
295 by lucas sizzo org)
[215]296 * allow POSIX regexes for filters
297 * consolidate filtering code from sh_extern.c, sh_(n)mail.c
[214]298 * rewrite mail subsystem to allow individual filtering
299 for recipients
[211]300 * allow shell expansion for values of config file options
[212]301 * allow list as value for option PortCheckInterface
[211]302 * fix bug in trustfile.c (with slapping on "/../" for symlinks)
[212]303 * lock baseline database upon writing
[211]304
[210]3052.5.2b (29-01-2009):
306 * turn warnings into errors in the compile test suite
307 * fix missing define in sh_portcheck.c to eliminate compiler warning
308 (reported by joerg)
309
[209]3102.5.2a (26-01-2009):
311 * fix problem building deb package (bit rot; reported by joerg)
312
[208]3132.5.2 (22-01-2009):
[207]314 * samhain.c: report module failure with positive offset
315 * sh_database.c: parse numerical fields into ulong
316 * fix regression test script for postgresql
317 * fix regression test script for SELinux/ACL test
[206]318 * fix reporting of user for open ports to prelude
319 * report process pid for open ports
[205]320 * replace _exit() by raise(SIGKILL) b/o pthread problem
321 * new option LooseDirCheck ([false]/true), request by
322 Alexander
323 * improved help output of samhain_stealth (as suggested
324 by Michael Athanasiou)
[207]325 * new option ProcessCheckIsOpenVZ ([false]/true)
[205]326
[208]3272.5.1 (07-12-2008):
[203]328 * workaround for freebsd7 amd64 lossage (compiler toolchain,
329 no mmap to 32bit address space)
330 * samhain-install.sh: check for presence of stealth_template.ps
331 before trying to create it
[202]332 * use -Wno-empty-body if supported to suppress warnings about
333 glibc pthread_cleanup_pop implementation
334 * fix text relocations for i386 in src/sh_tiger1.s
[200]335 * implement server->client SCAN command to initiate file check
336 * implement @if / @else conditionals with more tests in config file
[196]337 * new option SetDropCache to drop checksummed files from cache
[195]338 * report process/user for open ports on FreeBSD (code
339 lifted from FreeBSD sockstat.c)
[194]340 * fix for config reload issue with stealth mode (reported by
341 siim)
[192]342 * add -fstack-protector flags to LDFLAGS
343 * cygwin fix: don't use dnmalloc, doesn't work with pthreads
344 * cygwin fix: make trust check in samhain-install.sh return zero
345 * improved diagnostics for file read errors
346 * fixed script permissions (754 -> 755), reported by Christoph
[190]347 * constness patch by Joe MacDonald
[191]348 * GnuPG key ID patch by Jim Dutton
[192]349 * sh_kern.c: more error checking for reads from kernel
[190]350
3512.5.0 (01-11-2008):
[188]352 * dnmalloc.c: fix inconsistent chunksize on 64bit systems
[185]353 * fix improved error reporting for failed fstat in checksumming
354 * report process/user for open ports (Linux only currently)
355 * fix deadlock on exit in sh_hash_init()
[184]356 * fix --enable-mounts-check for FreeBSD 7.0 (no MNT_NODEV anymore)
357 * log monitoring support
[183]358 * fixed constness in trustfile interface
[181]359 * remove libprelude 0.8 support (obsolete)
[180]360 * sh_forward.c: increase TIME_OUT_DEF to 900 secs
361 * dnmalloc.c: initialize rc in dnmalloc_fork_child(),
362 reported by B. Podlipnik
363
3642.4.6a (09-10-2008):
[177]365 * fix compile problem on Fedora 9 (reported by pierpaolo),
366 'struct ucred' in sh_socket.c requires _GNU_SOURCE
367
3682.4.6 (27-08-2008):
[176]369 * fix compile failure on win2k/cygwin (sh_unix_mlock prototype),
370 reported by jhamilton
[174]371 * fix potential deadlock with dnmalloc upon fork()
372 * fix non-portable use of 'hostname -f' in regression test suite
373 (reported by Borut Podlipnik)
374
3752.4.5a (18-08-2008):
[173]376 * fix compile problem in dnmalloc.c (remove prototypes for
377 memset/memcpy), problem reported by Juergen Daubert
378
3792.4.5 (07-08-2008):
[172]380 * testscripts: 'chmod -R' -> 'chmod -f -R', since Solaris 10
381 bails out on a chmod on a dangling link
382 * fix bug in check_samhain.pl nagios script (J.-S. Eon)
383 * use the UNO static checker
384 * compile as position independent executable (PIE)
[171]385 * handle EINPROGRESS error (Windows/cygwin issue)
386 * make sure every function uses less than one page of stack
387 (proactive security against gap jumping, Gael Delalleau)
388 * use dnmalloc instead of system malloc
[172]389 (proactive security against heap buffer overflows)
[171]390 * fix dnmalloc bugs and portability problems
391 * check for compressBound, since older zlibs don't have it
392
3932.4.4 (30-04-2008):
[170]394 * sh_database.c: fix maximum size of sql query string, maximum
395 size of strings in struct dbins_
396 * sh_hash.c: fix maximum size of message string
397 * fix typo in the base64 decoder
398 * fix 'make cutest' for parallel compiling
399 * fix compile warnings with -Wstrict-prototypes
400 * sh_static.c: override getgrgid, getpwuid for libacl
401 * fix more warnings about variables clobbered by 'longjmp'
402 or 'vfork' (due to library internal handling of mutexes)
403 * fix configure warning about unused datarootdir
[169]404 * configure.ac: warn, but accept nonexistent tmp dir
405 (Problem reported by Brian)
406 * sh_unix.c: undef P_ALL, P_PID, P_PGID before including
407 sys/wait.h (compile problem reported by Reputation)
408 * syslog function tested ok with Syslog Fuzzer v0.1
409 by Jaime Blasco (c) 2008
410 * slib.c: call fflush when writing trace to file
411 * sh_readconf.c: don't set OnlyStderr to false if gpg (problem
412 reported by Irene Reed)
413 * fix unconditional removal of pid file in atexit handler (bug
414 reported by Brian)
415 * fix invalid free() in sh_unix_checksum_size()
416 * sh_processcheck.c: workaround for stupid OpenBSD bug (returns
417 ENODEV instead of EAGAIN, because fgetc does
418 fcntl(0,F_SETFL,O_NONBLOCK) [ENODEV] internally), problem
419 reported by Roman R.
420 * fix buf that cause incomplete reporting of modified symlink if
421 symlink has changed and both old and new paths are >48 bytes
422 * fix bug that prevented mount check from running in one-shot mode
423 * enable mount check for openbsd
424 * fix processcheck default options and test script for openbsd
425 * option --list-file to list content of file (if saved)
426 * sh_tools.c: use strcasecmp in reverse lookup since DNS is case
427 insensitive (bug reported by Phil)
428 * fill content if MODI_TXT, zlib compress, base64 encode and add
429 as link_path in sh_unix.c; add to report in sh_hash.c
[164]430 * testsuite: add test for gpg fingerprint option
431 * sh_extern.c: add 'CloseCommand' for syntactic sugar,
432 add in testsuite
433
[169]4342.4.3a (12-02-2008):
435 * fix compile error caused by open() with O_CREAT and no third argument
[167]436 (reported by J.-S. Eon)
437
[169]4382.4.3 (31-01-2008):
[162]439 * sh_kern.c: don't require asm/segment.h for kernel check module
440 * use global var with pid of initial thread instead of getpid(),
441 since LinuxThreads returns different value in each thread (problem
442 reported by Steffen Mueller)
443 * sh_kern.c: no inode check for pci rom (creates spurious messages)
444 * slib.c: eliminate prototype for vsnprintf (compile problem reported
445 by eddy_cs)
[161]446 * Makefile.in: fix missing dependency on 'encode' for $(OBJECTS)
447 (reported by Matthias Ehrmann)
448
[162]4492.4.2 (17-01-2008):
[160]450 * fix broken option --with-checksum (reported by halosfan),
451 regression test added
452 * change HP-UX default optimization to +O2 since +O3 breaks
453 cutest unit testing framework
[156]454 * put result vector of rng in skey struct
[154]455 * fix more compiler warnings, and a potential (compiler-dependent)
456 NULL dereference in the unix entropy collector
[153]457 * fix some compiler warnings
458 * use -D_FORTIFY_SOURCE=1 -fstack-protector-all instead
459 of -fstack-protector
460 * always add PTHREAD_CFLAGS to LDFLAGS
[151]461 * sh_tiger0.c: checksum functions return length of file hashed,
462 needed to fix GrowingLogfile bug (researched by
463 siim at p6drad dash teel dot net)
[150]464 * sh_static.c: fix more 'label at end of compound statement'
465 (SH_MUTEX_UNLOCK closing brace; reported anonymously)
[149]466 * make sh_hash.c thread-safe
467 * remove plenty of tiny allocations
468 * improve sh_mem_dump
469 * modify port check to run as thread
[152]470 * new option PortCheckSkip to skip ports
[149]471 * fix unsetting of sh_thread_pause_flag (was too early)
472
[160]4732.4.1a (28-11-2007):
[149]474 * fix overwrite of ErrFlags (functionality bug)
475
[160]4762.4.1 (26-11-2007):
[147]477 * security fix: regression in the seeding routine for the PRNG
478 (detected by C. Mueller)
479 * regression test added for PRNG seeding routine
[146]480 * fix problem with PCI ROM check (spurious messages about modified
481 timestamps, reported by S. Clormann)
482
[160]4832.4.0a (08-11-2007):
[145]484 * fix compile failure with --enable-static (reported by S. Clormann)
485 * fix potential deadlock if SIGHUP is received while suspended
486
[160]4872.4.0 (01-11-2007):
[131]488 * eliminate alarm() for I/O timeout (replaced by select)
489 * use getgrgid_r, getpwnam_r, getpwuid_r, gmtime_r, localtime_r,
490 rand_r, strtok_r if available
[134]491 * protect readdir(), getpwent(), gethostname() with mutexes
492 (readdir_r considered harmful)
[138]493 * make checksum/hash, entropy, rng functions reentrant
[134]494 * use thread-specific conversion buffer for globber()
[138]495 * fixed compile problems and problems with test suite
[144]496 * modify login watch to run as thread
497 * modify process check to run as thread
[131]498
[144]4992.3.8 (03-10-2007):
[127]500 * new option PortCheckIgnore = interface:portlist
501
[128]5022.3.7 (13-09-2007):
[125]503 * Makefile.in: fix 'make deb' target, wrong name of config file
504 written to debian/conffiles (reported by marc)
[124]505 * configure.ac: fix incorrect order of with-prelude, enable-static
506 (libprelude test was always without -static)
507
5082.3.6 (06-09-2007):
[123]509 * added yuleadmin.pl script contributed by Riccardo Murri
510 * fix compile error with -f-stack-protector on some systems (reported
511 by marc); we now check for libssp
[118]512 * fix local DoS attack on BSD systems lacking getpeereid() (reported
513 by Rob Holland).
[117]514 * fix yulectl password reading from $HOME/.yulectl_cred, erroneously
515 rejected passwords with exactly 14 chars (reported by Jerry Brown)
516 * introduce 'fflags' flag for suid files to detect new files already
517 found in regular file check (problem reported by J. Crutchfield);
518 also add regression test to ascertain that files in baseline
519 database are not quarantined erroneously
[114]520 * sh_hash.c: replace check for prefix 'K' with check for not prefix'/'
521 to allow for arbitrary module-specific store/lookup in db
522 * replace 'visited', 'reported', 'allignore' with generic 'fflags' field
[113]523 * sh_cat.c: reduce priority of MSG_TCP_RESET to avoid spamming if
524 port checking is used on same host as server (reported by kadafax)
525 * Install.sh: don't use --separate-output with non-checklist
526 widgets (problem discovered by D. Denton)
[111]527 * sh_gpg.c, sh_userfiles.c: use sh_getpwnam et al. wrappers
528
[124]5292.3.5 (20-06-2007):
[110]530 * sh_portcheck.c: try to tear down connections more gracefully
531 (request by S. Petersen)
[107]532 * fix incorrect handling of files with zero size in GrowingLogFiles
533 (problem reported by S. Petersen)
[105]534 * fix incorrect encoding of null checksums in stealth mode
535 * sh_hash.c: fix repeated printing of acl/attributes in database dump
536 * sh_unix.c: fix option useaclcheck ignored if both useaclcheck and
537 useselinuxcheck are supported
538
[110]5392.3.4 (01-05-2007):
[103]540 * sh_processcheck.c: fix missing init of sh_prochk_res array before
541 check (leads to degrading functionality over time and 'fake pid'
542 warnings; reported by D. Ossenbrueggen and
543 soren dot petersen at musiker dot nu)
544 * sh_processcheck.c: fix memory leak
[102]545 * sh_kern.c: for 2.6.21+ don't check proc_root_lookup (not possible
546 anymore? proc_root_inode.lookup != proc_root_lookup)
547 * sh_extern.c: flush streams before forking (problem if [Prelink]
548 used together with prelude logging, reported by M. deJong)
549 * fixed compilation of kern_head (regression cause by cross-compiling
550 fix; problem reported by S. Clormann)
[101]551 * more typos fixed (reported by John Horne)
552
5532.3.3 (27-03-2007):
[100]554 * fixed typos in configure.ac and manual (reported by John Horne)
555 * don't use mysql_options on x86_64, since libmysql is broken
[99]556 * fixed cross-compiling (patch by Joe MacDonald)
[94]557 * refactor sh_kern.c, sh_suidchk.c
558 * fix bug with leading slashes in linked path of symlinks within
[93]559 the root directory
560 * sh_kern.c: check PCI ROM (Linux), refactor code
[92]561 * move file descriptor closing more towards program startup
[93]562 * kernel check: support OpenBSD 4.0 (wishlist)
[92]563 * fix samhain_hide module (in-)compatibility with recent kernels
[93]564 (reported by Jonny Halfmoon)
565
[100]5662.3.2 (29-01-2007):
[89]567 * fix regression in full stealth mode (incorrect comparison of
568 bytes read vs. maximum capacity), reported by B. Fleming
569
5702.3.1a (21-01-2007):
[87]571 * fix incorrect use of sh_gpg_fill_startup if option --with-fp is used
572 (reported by zeroXten)
573
5742.3.1 (21-01-2007):
[100]575 * fix bug that may cause accidental closure of yule TCP socket
[85]576 (problem reported by B. Masuda)
[83]577 * fix sh_kern.c for kernel 2.6.19 (reported by S. Clormann)
[79]578 * don't use sstrip in 'make deb', since dh_shlibdeps uses objdump
579 (reported by B. Masuda)
580 * rm report.pl from rules.deb.in (reported by B. Masuda)
581 * samhainctl(): longer timeout (bad status reporting at startup,
582 reported by Phil and by Dan Track)
[78]583 * sh_portcheck.c: make connect errors more descriptive
584 * sh_portcheck.c: fix ignored setting of PortCheckActive
585 * sh_processcheck.c: add statvfs, and wrap for EINTR
586 * sh_portcheck.c: add wrappers for EINTR
587 * report user and executable for hidden processes
588 * fix update failure if reportonlyonce = false (reported
589 by D. Strine)
[76]590 * fix compile error in sh_portcheck.c (problem on cygwin
591 reported by J. D. Fiori)
592 * check filenames ending in space (also for utf8 spaces)
593 * check and escape csv formatted db listing
594 * cache results of sl_trustfile_euid()
595 * trustfile: use 4096 for MAXFILENAME, switch to strncpy
596 * CL option -v|--version for info on version and compiled-in options
597
[78]5982.3.0a (01-11-2006):
[75]599 * fix compile failure with portcheck + stealth (reported by lucas)
600
6012.3.0 (01-11-2006):
[68]602 * fix concurrency for inserts in oracle db
603 * add acl_(new|old) to database schema
604 * check for selix attributes and/or posix acl
605 * new option UseSelinuxCheck (bool)
606 * new option UseAclCheck (bool)
607 * regression tests for above
608 * add module to check for open ports
609 * add module to check processes (hidden/fake/missing)
610 * use const char* for argument of module configuration callbacks
611
[73]6122.2.6 (31-10-2006):
613 * fix missing support for MacOX X init script (reported
614 by Daniel Kowalewski)
[65]615 * fix error about non-readable file with no checksum required
616 * fix server warning about 'no server name known'
617 * fix 'make deb' makefile target
618 * fix default export severity for server
[68]619
[65]6202.2.5 (05-10-2006):
[63]621 * fix broken Install.sh, reported by Alexander Kraemer
[61]622 * workaround for glob(3) sillyness on MacOS X (reported by David)
623 * fix for broken resorce fork check (reported by David)
624 * fix for broken compilation on cygwin (reported by Elias)
625
6262.2.4 (03-09-2006):
[60]627 * add regression test for the GrowingLogFiles issue to test suite
[59]628 * fixed sh_unix.c: bug in database init if GrowingLogFiles used
629 with signed database (reported by Timothy Stotts)
630 * bug in manual fixed (incorrect documentation of --enable-user,
631 noticed by M. Brown)
632 * rc.subr compatible init script for FreeBSD/NetBSD
[58]633 * improve routine to find rpm after build
[57]634 * add netbsd rc file from Brian Seklecki (taken from pkgsrc-wip)
635 * fix error in manual (location of lock file)
[55]636 * fix bug with SuidExclude (files in directory were still checked)
637
[59]6382.2.3 (31-07-2006):
[53]639 * fix samhainadmin.pl: check for gpg-agent running if use-agent is set
640 (ticket #28 by anonymous)
[52]641 * fix stealth mode (regression in parser), problem reported by
642 Joschi Kuphal
[54]643 * fix minor typo in sh_database.c (compile problem reported by
644 Joschi Kuphal)
[52]645
[51]6462.2.2 (17-07-2006)
647 * minor fixes for regression test scripts
648 * minor updates to the manual (suggested by Brian A. Seklecki)
649 * fix sh_kern.c, kern_head.c: kernel rootkit detection for 2.6.17+
650 (problem reported by Leonhard Maylein)
651 * fix samhain_hide.c for 2.6.17+: use module_param() if MODULE_PARM
652 is not defined
653
6542.2.1c (11-07-2006)
[49]655 * fix sh_extern.c: sh_ext_add_default() cast to (void) was too early
656 (Solaris 8 build failure reported by Jesse)
657 * fix sh_unix.c: wrong prototype for sh_unix_mlock()
658 if HAVE_BROKEN_MLOCK (AIX 5.2 build failure reported by
659 Jonathan Kaufman)
660
[48]6612.2.1b (20-06-2006):
662 * fix compile error on SuSE 10.1 (reported by Leonhard Maylein)
663
6642.2.1a (15-06-2006):
[47]665 * fix compile error on i686/MacOS X (reported by Andreas Neth)
666
[48]6672.2.1 (13-06-2006):
[46]668 * fix gcc 4 warnings and build failure on x86_64 (debian bug #370808)
669 * fix compiling with Oracle (noticed by Colapinto Giovanni)
670 * fix configure.ac for most recent autoconf version
671 (debian bug #369503)
[42]672 * fix a regression that would make impossible local updates w/clients
673 * fix a few missing '\n' in sh_getopt.c
[41]674 * sh_kern.c: fall back on mmap() if read() fails on /dev/kmem
[40]675 * fix Solaris package creation
676 * recognize Solaris doors and event ports
677 * fix the idmef_inode_t patch: provide required info to avoid stat()
678 * fix bug on database update: fill in dev and rdev fields
679 * fix get_file_infos() in sh_prelude.c: avoid premature return
680 * GCC_STACK_PROTECT_CC: AC_TRY_COMPILE -> AC_TRY_LINK
[38]681 * deploy.sh: allow to set a group for hosts upon installation
[36]682 * patch by Yoann: fix an issue when setting the idmef_inode_t object
683 * fix memory leaks in error paths in sh_prelude.c
684 * fix concurrent inserts with postgres in sh_database.c
685 * code cleanup
[47]686 * fix manual version in spec file, first noticed by Imre Gergely
[34]687
[48]6882.2.0 (01-05-2006):
[30]689 * patch by Jim Simmons for samhainadmin.pl.in
690 * fix testsuite portability problems
691 * fix md5 endianess problem detected on HP-UX 11i / PA-RISC 8700
692 * fix potential NULL dereference in sh_utmp_endutent()
[29]693 * patch by Neil Gorsuch for suidchk.c (do not scan lustre, afs, mmfs)
694 * fix sh_ext_popen (OpenBSD needs non-null argv[0] in execve)
695 * fix make_tests.sh portability (echo '"\n"' does not work on OpenBSD)
696 * fix bug in sh_utils_obscurename (check isascii)
697 * scan h_aliases for FQDN if h_name is not
[27]698 * add copyright/license info to test scripts
699 * add copyright/license info to deployment system scripts
700 * support server-to-server relay
[29]701 * new CL option --server-port
[27]702 * minor improvements in manual
[25]703 * patch by Yoann Vandoorselaere for sh_prelude.c
[22]704 * allow --longopt arg as well as --longopt=arg
[29]705 * verify checksum of growing log files (up to previous size)
[22]706 * rewrite of the test suite
[18]707 * added a bit of unit testing
708 * minor optimizations in various places
709 * optimized implementation of tiger checksum algorithm
710 * read in 64k blocks (faster than 4k)
711 * sh_unix.c, sh_hash.c: support file flags on *BSD, update Linux
712 file attribute code
713 * kern_head: fix compilation of kernel check module on OpenBSD
714 * updated samhainrc.linux, samhainrc.freebsd
715 * sh_unix.c: fix setrlimit (RLIMIT_NOFILE, ..)
716 * sh_files.c: fix missing use of flag_err_info
717 * sh_tiger0.c: remove repetitive use of mlock
718 * slib.c: remove fcntl's from sl_read_timeout (caller sets O_NONBLOCK),
719 add function sl_read_timeout_prep
[3]720
[25]7212.1.3 (13-03-2006):
722 * fix compile problem in slib.c (reported by Lawrence Bowie)
723 * fix bug with combination of one-shot update mode and file check
724 schedule (reportedby Dan Track)
725 * improved the windows howto according to suggestions by
726 Jorge Morgado
727 * fix samhain_hide kernel module for new linux kernel versions
728 * fix minor problem with dead client detection (problem reported
729 by Michal Kustosik)
730
[18]7312.1.2 (10-01-2006):
732 * fix startup error with combination of gpg+prelude
733
[5]7342.1.1a (22-12-2005):
735 * fixed a stupid bug in sh_files.c (break if file = dir)
736
7372.1.1 (21-12-2005):
[3]738 * sh_calls.c: protect sh_calls_set_bind_addr against overriding
739 * comINSTALL, updateDB: use locking
740 * samhainadmin.pl: use locking
[1]741 * fix typos in samhainrc.solaris (noticed by Robby Cauwerts)
742 * improve zAVLSearch (remove redundant strcmp)
[3]743 * use AVL tree in sh_files.c instead of linked list (better scaling)
[1]744 * fix bug with suidcheck (no update/check in one-shot mode with
745 schedule instead of check interval; noticed by R. Rati)
746 * fix for problem with '-t update -i' if daemon mode (problem report
747 by Peter van der Does)
748 * fix for bug in sh_util_ask_update (two returns were required ...)
749
7502.1.0 (31-10-2005):
751 * minor fix for cross-compiling with --with-kcheck
752 * sh_forward.c: handle bad fds in the select() fd sets
753 (reported by hmy)
754 * sh_extern.c: fix debugging code
755 * slib.c, sh_calls.c, sh_calls.h: improve handling of O_NOATIME
756 (reported by Gabor Kiss)
757 * makefile.in: fix for solaris package creation
758 * sh_mail.c, sh_readconf.c: mail filtering options
759 * sh_database.c: Oracle reconnect on connection failure
760 (bug report by Alexander A. Sobyanin)
761 * sh_unix.c: don't purge MYSQL_UNIX_PORT environment variable
762 (problem reported by Peter)
763 * sh_calls.c: fix for a HP-UX accept() problem caused by the gcc4 fix
764 * fixes for gcc 4.0.2 compiler warnings
765 * ability to use daemon mode together with update
766 (wishlist Yoan Vandoorselaere)
767 * fixes for debugging
768
7692.0.10a (22-08-2005):
770 * fix for overlapping directory check specification (reported by Bub)
771
7722.0.10 (21-08-2005):
773 * fix for segfault (free() on a constant string) with libprelude
774 (problem reported by Grae Noble)
775 * upgrade FreeBSD kernel check to 5.4, minor fixes
776 * useful script for users of Linux kernel check
777 (contributed by marc heisterkamp)
778 * documentation improvements (suggested by Brian Seklecki and Robby)
779
7802.0.9 (25-08-2005):
781 * samhain_erase.c: add #define for NULL
782 * sh_suidchk.c: fix incorrect use of escaped filename
783 * sh_prelude.[ch], sh_readconf.c: configurable mapping from
784 samhain severity to prelude severity
785 * sh_unix.h: second arg of gettimeofday should be NULL
786 * sh_files.c: fix checking of directory special file (use specified
787 policy, not that of parent dir, problem found by Brian A. Seklecki)
788 * sh_entropy.c: longer timeout for entropy collector
789 * sh_socket.c, sh_forward.c: allow probing of clients for
790 necessity of configuration reload
791 * yulectl: minor fixes, option -v (verbose), new command PROBE
792 * fix 'File not found' messages for files flagged with IgnoreMissing
793 * sh_database.c: strip newline from oracle error messages
794 * sh_files.c: fix rsrc fork issue with MacOS X Tiger
795 (reported by A. Koren)
796 * never compute checksum if not checked (problem report by D.Hughes)
797 * sh_prelude.c: cleanup and bugfix by Yoann
798 * sh_hash.c: for prelude, make sure mode is supplied with user/group
799 and vice versa
800 * sh_prelude.c: provide proper FileAccess objects (bug
801 report by Mihai Ilinca)
802
8032.0.8 (03-07-2005):
804 * configure.ac: use $LIBPRELUDE_PTHREAD_CFLAGS rather than
805 $LIBPRELUDE_CFLAGS (bugfix by Yoann)
806 * samhain.spec.in: remove support for chkconfig (it's too buggy).
807 Strangely, if invoked as install_initd it behaves sanely ...
808 * src/sh_err_log.c: fix key input (this time for real)
809 * fix --with-altlogserver (bug from 2.0.7b)
810 * remove server socket in start/stop script
811
8122.0.7e (not released):
813 * Makefile.in: introduce a total of 6 sec delay for 'make' utilities
814 that use 1 sec resolution, and consider target out-of-date if
815 timestamp(target) = timestamp(dependency) ...
816 * src/sh_err_log.c: fix key input
817 * another fix for yulectl (use pwent->pw_dir)
818 * dsys/comINSTALL, dsys/comUNINSTALL, dsys/comBUILD: fix PATH
819
8202.0.7d (not released):
821 * one more fix for the spec file (stupid rpm finds tags in comments!!!)
822
8232.0.7c (not released):
824 * test/testrun_1b.sh, test/testrun_2b.sh: use $GPG_PATH
825 * dsys/comINSTALL, dsys/funcDB, dsys/funcINSTALL: some bugfixes
826 * samhain-install.sh.in: fix test -z $verbose
827 * sh_hash.c: speedup database reading
828 * Makefile.in: fix the problem that BSD make would make too much
829 * deploy: yulerc.clients -> yulerc.install.db, provide
830 $defdatabase for backward compatibility
831 * deploy: allow for comma in client_install_date
832
8332.0.7b (not released):
834 * hp_ux.psf.in: fix psf file
835 * dsys/comINSTALL: fix $yule_date -> $yule_data
836 * Makefile.in: fix 'make depot'
837 * sh_tools.c, sh_unix.c: fix detection of open file limit
838 * sh_readconf.c: reset read_mode after reading conf file
839 * yulectl.c: better error messages, use homedir from getpwuid(geteuid)
840 * init/samhain.startLSB.in: fix misleading message in lsb init script
841 * sh_forward.c: better display for nonce u in debug mode
842 * sh_tiger*.c: fix checksum for HP-UX 64bit
843 * samhain.c: don't fetch database twice
844 * configure.ac: accept nodename for --with-logserver=...
845 * samhain_setpwd.c: return proper exit status for samhain_setpwd
846 * respond to SIGTERM on initializing
847 * fix problems with samhainadmin.pl
848 * sh_utils.c: fix bug with AddOKChars (found by Karol)
849
8502.0.7a (not released):
851 * remove 'df' from entropy gatherer (NFS may hang)
852 * modify va_copy check (doesn't work with HP-UX PA64 compiler)
853 * fix compile warnings in sh_database.c
854 * samhain-install.sh.in: check for /usr/bin/false in /etc/shells
855 * fix install-boot on HP-UX
856 * aclocal.m4: fix configure CL parsing to recognize VAR=VALUE
857
8582.0.7 (11-06-2005):
859 * yet another fix for the spec file (use internal dependency generator)
860 * sh_error.c, sh_prelude.c: init libprelude after open fds are closed
861 * error message if queue is full
862 * fix two compiler warnings on HP-UX
863 * fix sh_mail.c for Interix (no resolver routines)
864 * fix sh_unix_initgroups2() if no initgroups() function (bug reported
865 by Geries Handal)
866 * remove references to 'struct timezone' (Interix; problem
867 reported by Geries Handal)
868 * init/stop for prelude on SIGHUP
869 * sh_cat.h: fix a stupid bug with messages classes
870 * manual: new section on nagios (with help from kiarna),
871 more on prelude
872 * sh_prelude.c: cleanup and improvements (Yoann Vandorselaere)
873 * default prelude profile name now is 'samhain' (lowercase)
874 * sh_readconf.c: new option PreludeProfile (by Yoann Vandorselaere)
875 * remove obsolete check for linux/module.h, linux/unistd.h
876 * remove dependency on virtual/glibc in gentoo ebuild
877 (problem reported by Willis Sarka)
878
8792.0.6 (01-03-2005):
880 * sh_prelude.c, configure.ac, aclocal.m4: support for
881 libprelude 0.9 (Yoann Vandoorselaere)
882 * sh_html.c: fix bug with entry.html template (reported by
883 Stephane Sanchez)
884 * Install.sh: fix mandir option (reported by Rodney Smith)
885 * Fixed Linux/64bit bug in definition of EUIDSLOT
886 * New targets 'make depot', 'make depot-light' (HP-UX, untested)
887 * Use sstrip for RPMs and DEBs (automatic stripping disabled)
888 * Fix aclocal.m4 for autoconf 2.59 (missing $ac_cr_alnum et al.,
889 problem noticed by Yoann Vandoorselaere)
890 * Modify samhain.spec.in to disable automatic stripping upon install
891 * Fix deploy.sh + '--enable-gpg', and fix 'make rpm' and 'make deb'
892 for '--with-khide' (problems reported by Mark)
893 * Fix compile error in sh_tools.c on HP-UX 10.20
894 (problem reported by Dennis Boylan)
895 * Runtime configuration of server listening port (wishlist)
896 * Runtime configuration of server listening interface (wishlist)
897 * Ignore SIGTTIN (consistency)
898 * Use SIGTTOU to force file check (wishlist)
899
9002.0.5b (01-04-2005):
901 * Fix build problem b/o timestamp on stamp file
902
9032.0.5a (16-03-2005):
904 * Fix problem with 'make rpm' (reported by Dirk Brümmer)
905
9062.0.5 (02-03-2005):
907 * Fix bug with partial reads from clients in server
908 (bug report by Brian)
909 * Support gpg checksum bootstrap with yule
910 * Support mount option check on HP-UX
911 * For MAIL FROM, use 'example.com' as domain part if
912 hostname is numeric (problem reported by Eric Raymond)
913 * The HOWTO-write-modules has been updated.
914 * Convenience functions to insert data in database have been
915 added.
916 * Use int0x03 only on i386 in sh_derr() (portability problem
917 reported by John Mandeville)
918
9192.0.4 (09-02-2005):
920 * Fixed broken 'make deb' (problem report by olfi)
921 * Fixed minor bug in test scripts (detection of gmake vs. make)
922 * Fixed Tru64/OSF compile warnings (reported by B. Terp)
923 * Normalize list parsing to allow comma, space, and tab as separators
924 * Some more descriptive error messages in kern_head.c
925 * Absolute path to utilities in init/samhain.startLinux.in
926 * Fixed is_root variable in deploy.sh
927 * Fixed 'deploy.sh info'
928 * Fixed 'deploy.sh install' client startup
929 * Fixed 'make tbz': don't remove ebuild scripts in 'make dist'
930 (issue reported by W. Sarky)
931
9322.0.3 (14-12-2004):
933 * Fix CPPFLAGS with mysql/postgresql (repoted by P. Smith)
934 * Fix missing sys/time.h include in slib.c (reported by Jonas)
935 * Workaround for file closing problem with Prelude+GPG
936 * Fixed memory leak with Prelude.
937 * Fixed bug in samhain_stealth (PGP signature not correctly
938 retrieved from hidden configuration; report and patch by V. Tuska)
939 * Added Perl script to concatenate file signature database files
940 * Fix compile error with combination of --enable-nocl and
941 --enable-stealth (reported by Zdenek Polach)
942 * Fix bug in dsys/initscript with --enable-nocl
943 * Fix declaration of sh_kern_timer()
944 * Fix missing Mounts+Userfiles options in appendix of manual
945 * Updated the README (bug report by H. Franzke)
946 * Fix some compiler warnings
947
9482.0.2a (09-11-2004):
949 * Fixed OoM condition when client rc file not found (reported by Eilko)
950
9512.0.2 (08-11-2004):
952 * Fixed buffer overflow in sh_hash_compdata() (only in 'update' code)
953 * Fixed uninitialized variable in sh_mail_msg() (problem reported
954 by Michael Milvich)
955 * Fixed potential NULL pointer dereference in sh_hash_compdata()
956
9572.0.1 (01-11-2004):
958 * Fixed compilation bug reported by jue (--with-kcheck broken).
959 * Fixed start option (bug reported by sanek). Behaviour wrt.
960 environment variables depended on the way the daemon was started.
961
9622.0.0 (31-10-2004):
963 * The deployment system has been rewritten from scratch in
964 a cleaner and more modular and extensible way. Deployment
965 of native packages is supported now.
966 * The build system has been revised. Building outside the source
967 directory is supported now.
968 * Support for checksumming of prelinked executables / libraries
969 has been added.
970 * The configure script now checks for the SSP/ProPolice patch in GCC,
971 and enables it if present.
972 * The install-boot option in samhain-install.sh has been fixed
973 (use absolute paths for sbin utilities).
974 * A nagios plugin (scripts/check_samhain.pl) has been added.
975 * The LSB (Linux Standard Base) init script has been fixed (the output
976 was incorrect).
977 * Fetching of built binary packages has been
978 fixed ($(PACKAGE)->@install_name@).
979 * For files in proc, the timeout has been reduced, and no error
980 messages are issued upon timeout.
981 * A function has been added to print out full details for missing
982 files if encountered while in sh_files().
983 * The reporting for SuidCheck has been fixed (incorrect policy
984 noticed by JiM).
985 * On Linux, SuidCheck does not report on files marked as candidates
986 for mandatory locking (group-id bit set, group-execute bit cleared).
987 * Fix for oracle init script (by Matt Warner)
988
9891.8.12b (11-10-2004):
990 * fix bug in MSG_MSTAMP (%ld -> %lu)
991 * fix bugs in sh_suidchk.c (%ld -> %lu), check fopen for NULL,
992 mkdir mode for quarantine directory
993 * fix the fix for modlist_lock search in System.map
994
9951.8.12a (01-10-2004):
996 * fix bug in samhain-install.sh.in (only occurs on Solaris), reported
997 by J. Roland
998
9991.8.12 (27-09-2004):
1000 * fix compile bug with --enable-static + --with-database=postgresql
1001 * fix search for modlist_lock in System.map
1002 * password auth for yule command socket (request by D. Kocic)
1003 * more info about pending/sent commands to clients
1004
10051.8.11 (30-08-2004):
1006 * fix static linking on Linux by use of replacement routines from
1007 uClib - however, this means, there is no NIS support anymore
1008 * new option AddOKChars=... to modify the set of characters for
1009 filenames considered 'obscure'
1010 * new option HardlinkOffset=... to specify an offset from the canonical
1011 hardlink count for a directory
1012 * fix some warning with HP 11.23 native compiler
1013 * fix minor OpenBSD portability problems (EIDRM, compiler warning)
1014 * samhainrc.5, samhain.8: updated the man pages
1015 * sh_unix.c, sh_files.c: ignore 'no user/group' and 'obscure name'
1016 for AllIgnore
1017 * sh_kern.c: fix 'update' to display modifications
1018 * sh_kern.c: fix bug with IDT check (spurious alerts b/o uninitialized
1019 fields)
1020 * stealth kernel modules: fix for linux 2.6, fix
1021 redefine of KERNEL_VERSION
1022 * warn about stealth kernel module problem with 2.6 in manual
1023 * sh_unix.c: remove some cruft
1024 * fix a typo in the manual (noticed by J. Rubin)
1025 * configure.ac: re-order output from libprelude-config (required
1026 for static linking - problem reported by E. Neber)
1027 * kern_head.h, kern_head.c: fixes for Linux 2.6 kernel
1028
10291.8.10b (13-07-2004):
1030 * fix incorrect usage of 'retry_msleep()' in sh_kern.c (reported
1031 by Pat Smith)
1032
10331.8.10a (13-07-2004):
1034 * depend-gen.c: fix for FreeBSD 'make' which does not understand
1035 the dependencies ... (problem reported by David Thiel)
1036
10371.8.10 (13-07-2004):
1038 * sh_unix.c/sh_unix.h: fix defaults for 'GrowingLogFiles' policy
1039 (bug report by VZoubkov)
1040 * fix some warnings (unreachable statement) with HP-UX native compiler
1041 * kern_check.c: silence warning about 'sendfile' for 4.10
1042 (noticed by Ryan Beasley)
1043 * modify depend-gen.c to ignore sh_gpg_chksum.h
1044 * add a non-plaintext version of GPG_HASH (sh_gpg_chksum.h)
1045 * .. and for fingerprint
1046 * sh_suidchk.c: fix some compiler warnings on solaris
1047 * allow commas to separate multiple entries in a RedefXXX= directive
1048 * replace sleep/usleep with nanosleep wrapper function
1049 * replace alarm() for read timeout with select() in sl_read_timeout
1050 (should fix bug reported by Scott Kelley)
1051 * increase lstat/open timeout to 6 sec
1052
10531.8.9 (16-06-2004):
1054 * made 'no action specified' error message more informative
1055 (suggested by Stephen Gill)
1056 * fix memory leak in mysql sh_database_query() (bug report by Dejan)
1057 * remove some cruft from the code
1058 * sh_files.c: check MacOS X resource forks (idea from Osiris)
1059 * sh_files.c: no hardlink check for MacOS X
1060 * sh_util_ask_update: fix bug with no terminal in non-interactive mode
1061 (report and debug data by Kris Dom)
1062 * manual refactored
1063 * fix redundant messages when updating with suidcheck
1064 * allow interactive update for suid files
1065 * don't remove the TZ environment variable to guard against
1066 misconfigured hosts
1067 * also use gethostname if uname returns possibly truncated name
1068 * fix improper file descriptor handling in sh_mail.c (bug report
1069 by Alex Weiss)
1070 * cleanup MBLK cruft
1071 * use SH_ALLOC/SH_FREE in sh_prelude.c
1072 * update sstrip to Version 2.0
1073
10741.8.8 (25-05-2004):
1075 * fix compilation problem on AIX 5.2 (nameser_compat.h; report by
1076 Tim Evans and Ian McCulloch)
1077 * don't check for trusted paths on Cygwin
1078 * add Windows HOWTO written by Kris Dom
1079 * kern_check.h: extend FreeBSD syscall table for 5.x
1080
10811.8.7a (03-05-2004):
1082 * sh_mail.c: fix subject length
1083 * sh_mail.c: fix the sh.mailNum.alarm_last fix (report by Kris Dom)
1084 * sh_utils.c: sh_util_ask_update(): fix ISO C conformance bug
1085 (compile problem reported by Kris Dom)
1086
10871.8.7 (01-05-2004):
1088 * sh_mail.c: fix incorrect count of sh.mailNum.alarm_last, causing
1089 empty mails (introduced with segfault fix in 1.8.6, report
1090 by Kris Dom)
1091 * sh_utils.c: sh_util_ask_update(): check whether stdin is a terminal,
1092 try to reopen on controlling terminal if not
1093 * sh_utmp.c: fix order of options (problem report by Uri)
1094 * sh_files.c: sh_files_chk(): set tmp = NULL at end of loop
1095 (may cause segfault on null dereference for missing files)
1096 * sh_unix.c: patch by Marc Schütz (order of sh_unix_getinfo_type,
1097 sh_unix_getinfo_attr)
1098 * don't use dh_installmanpages in 'make deb' (samhain/yule conflict
1099 reported by xavier)
1100 * on HP-UX, define _XOPEN_SOURCE_EXTENDED in sh_mail.c and sh_tools.c
1101 (suggested by Kris)
1102 * include nameser_compat.h in sh_mail.c (for MacOS X,
1103 suggestion by jna)
1104 * sh_utmp.c: fix time for logout events (reported by Erich
1105 van der Velde)
1106
11071.8.6 (15-04-2004):
1108 * add CL option to set threshold for prelude and RDBMS
1109 * sh_mail.c: fix bug with MailSubject option (segfault on NULL pointer
1110 dereference; reported by Micha Silver)
1111 * fix compiling with --disable-encrypt (reported by Pat Smith)
1112 * fix minor problem in scheduler (don't return before all schedules
1113 are tested, to set last_exec correctly)
1114
11151.8.5 (05-04-2004):
1116 * fix bugs in sh_utmp.c (unlinking of list head); may fix an OpenBSD
1117 problem (endless loop; report and debugging aid by Joe MacDonald)
1118 * fix hardlink check (null dereference in error message, segfaults
1119 on solaris - noticed by Bob Bloom)
1120 * sh_suidcheck: don't truncate quarantined file if nlink > 1
1121 * fix Install.sh (no --seperate-output with --radiolist); patch by
1122 Greg Kimberly
1123
11241.8.4 (17-03-2004):
1125 * add Prelude patch by Patrice Bourgin
1126 * add license statement to sh_mounts.c, sh_userfiles.c after
1127 receiving a clarifying e-mail from Cian Synnott
1128 * support UsePersistent = no for Oracle (problem spotted and fix
1129 tested by Michael Somers)
1130 * fix bug in samhainadmin.pl
1131 * sh_gpg.c: describe type of gpg error (if any)
1132 * fix persistent connections with postgresql (reported by
1133 Erwin Van de Velde)
1134 * prelude: local 'meaning' shadows global in sh_prelude_alert
1135 (spotted by David Maciejak)
1136 * uname: workaround for cases where nodename would be a possibly
1137 truncated FQDN (problem reported by Cian Synnott)
1138 * re-write parts of sh_kern.c, store kernel info in baseline database
1139 -> no need to recompile after kernel upgrade
1140 * modify timeouts in sh_unix_getinfo, add timeout warning
1141 * change handling of dangling symlinks (store in db)
1142 * fix typo with MSG_FI_OBSC2 (double slash)
1143 * remove redundant operation in sh_utils_safe_name
1144 * fix occasional random start bytes of long messages in
1145 sh_error_string (sl_strlcat -> sl_strlcpy)
1146 * provide details for missing files (as for added files)
1147 * remove duplicate message for no such group/user
1148 * add fixes for samhain.oracle.init (supplied by Michael Somers)
1149 * fix date insertion for Oracle (fix by Michael Somers)
1150 * manual: fix incorrect statement about RPM (noticed by
1151 Lars Kellogg-Stedman)
1152
11531.8.3 (02-02-2004):
1154 * add a HOWTO-client+server-troubleshooting document
1155 * fix another bug with SIGUSR2 (suspend mode)
1156 * new option SetBindAddress (--bind-address=...) to force
1157 interface for outgoing connections on multi-interface box
1158 * don't link against libgmp if not required (i.e. standalone)
1159 * test for ext2fs/ext2_fs.h or linux/ext2_fs.h
1160 * new make targets 'emerge' and 'tbz2' for gentoo
1161 * update rules.deb.in based on the Debian package
1162 by Javier Fernandez-Sanguino
1163 * updated config.guess, config.sub to version 2002-09-05
1164 * external command: report failure only once
1165 * console: reset failure status after success
1166 * README.UPGRADE: explain 1.7.x <-> 1.8.x client/server compatibility
1167 * use persistent connection to database by default
1168 * option UsePersistent=no to switch off persistent connection
1169
11701.8.2 (19-01-2004):
1171 * sh_userfiles.c: new option UserfilesCheckUids (requested)
1172 * sh_error.c: server: don't log to logfile before dropping root
1173 * new script scripts/samhainadmin.pl (administrative tasks for
1174 signed config/database files)
1175 * add changes code to log_msg for reports on modified files
1176 * change default log threshold to 'mark', as 'none' tends
1177 to confuse new users
1178 * faster response time for SIGUSR2
1179 * revised (mostly backward-compatible) message classes
1180 * fix missing check of mailTime in server select loop
1181 * add support for libprelude (version 0.8.10)
1182 * fix format for MSG_E_GRNULL (reported by Stefan Hudson)
1183 * fix Bourne shell incompatibility (export) in samhain-install.sh
1184 (first reported by David Thiel)
1185 * fix typo in spec file (first reported by Christian Vanguers)
1186 * remove some cruft (signal handler, memory handling)
1187 * return from sigterm handler, rather than exit directly
1188 (re-entrancy problem causes more problems than it's worth)
1189
11901.8.1 (03-12-2003):
1191 * fix gmp detection (problem pointed out by Nix)
1192 * fix/improve the error message if test compiling with mysql fails
1193 * new CL option --interactive for interactive db update
1194 * fix some compiler warnings from IRIX MIPS compiler
1195 * kern_head.h, kern_head.c: option to disable IDT check
1196 * kern_head.h, kern_head.c: update kernel syscall table (2.4.20,2.6)
1197 * sh_utmp.c: count number of logins (request by Erwin Van De Velde)
1198 * change username -> userid, remove (long) userid (bug noticed
1199 by Erwin Van De Velde)
1200 * emit ADDED message for new SUID/SGID files
1201 * add trailing slash to excluded directory if there is none
1202
12031.8.0a (04-11-2003):
1204 * sh_error.c: remove two debug printf's
1205
12061.8.0 (31-10-2003):
1207 * manual: make ps file fit on both a4 and letter paper
1208 * sh_socket.c, sh_socket.h, sh_forward.c: socket interface
1209 to send (quit/reload) commands to clients
1210 * sh_forward.c, configure.ac: enable build with libwrap
1211 (Wietse Venema's TCP Wrappers library)
1212 * sh_ignore.c, sh_ignore.h, sh_files.c, sh_hash.c, sh_readconf.c:
1213 new option to suppress messages for new and/or deleted files
1214 * samhainrc.aix5.2.0: contributed by Christoph Kiefer
1215 * samhain.c: fix compile warning on solaris (noticed by Ian Hunt)
1216 * sh_database.c: undef debug code for oracle
1217 * samhain.oracle.init: contributed by Joern Michael Krueger
1218 * configure.ac, sh_utils.ac, Makefile.in, sh_modules.c,
1219 sh_cat.c, sh_cat.h, sh_mounts.c/h, sh_userfiles.c/h:
1220 check-mounts and userfiles modules contributed by eircom.net
1221 * sh_utils.c: fix off-by-one bug in sh_util_compress()
1222 * sh_forward.c, sh_tools.c, configure.ac:
1223 version 2 client/server protocol
1224 * sh_mail.c: add %S to include severity in subject (user request)
1225 * sh_suidchk.c, 1093: fix warning about unused var 'flags' on FreeBSD
1226 * samhain.h, sh_unix.h, sh_unix.c: extern inline -> static inline
1227 for --enable-ptrace
1228 * samhain.c: lower priority for 'uninitialized module' message
1229 * sh_entropy.c: lower priority for message if /dev/random blocks and
1230 /dev/urandom is available
1231 * improved error messages in sh_readconf.c
1232 * print system error message for getpwuid, getgrgid
1233 * fix missing module init after SIGHUP (noticed by Cian Synnott)
1234
12351.7.12 (13-10-2003):
1236 * sh_mail.c: fix buffer overflow in mail handler (introduced in 1.7.10)
1237 thanks to bug reports by Jason Martin and Matthew P. Cox
1238
12391.7.11 (01-09-2003):
1240 * samhain.c, samhain.h, sh_unix.c, sh_forward.c, sh_html.h:
1241 - change SIG_USR1 to switch between dbg on/off
1242 - change SIG_USR2 to switch between suspend on/off
1243 - fix CLT_ILLEGAL to actually work
1244 - introduce new state CLT_SUSPEND
1245 - force reauthentication after suspend
1246 * slib.c: change MAXFD from FOPEN_MAX (16) -> 1024
1247 * sh_suidchk.c: better AIX fs detection (Christoph)
1248 * sh_entropy.c: increase buffer size for unix entropy gatherer
1249 (problem reported by D. Danielson)
1250 * default config files: add lots of comments, list more options
1251 * sh_error.c: set default severities to 'crit'
1252 * sh_readconf.c, sh_cat.c, sh_cat.h: stricter check on config
1253 file syntax, issue warnings (triggered by C. Kiefer)
1254 * Makefile.in: handle depend-gen errors more gracefully
1255 * sh_err_console.c: fix bug in enable_msgq (reported by F. Behrens)
1256 * configure.ac: workaround for mysql_config weird output
1257 (reported by G. Faron)
1258 * sh_unix.c, sh_tiger0.c: check IO limit during read of large files
1259 * depend-gen.c: close streams before attempting to rename (Cygwin)
1260 * Makefile.in: fail gracefully if depend-gen fails
1261 * sh_database.c: sh_database_query(postgresql): fixed missing SL_ENTER
1262
12631.7.10 (27-07-2003):
1264 * FreeBSD init script: define $pidfile (reported by D. Thiel)
1265 * sh_unix.c, sh_unix.h: fix compile error on AIX 4.2
1266 * sh_schedule.c: fix bad array size
1267 * samhain.c: fix pid_t <> int casts
1268 * sh_kern.c: fix repetitive messages
1269 * configure.ac: try to bootstrap if TIGER192 not supported by gpg,
1270 provide a detailed error message
1271 * configure.ac: try harder to locate mysql
1272 * docs/Changelog: retroactively add release dates, if known
1273 * sh_mail.c: fix potential message truncation in mailer
1274 * sh_unix.c, samhain.c, samhain.h: make --enable-ptrace more portable
1275 * sh_readconf.c: fix segfault (dereference of uninitialized pointer)
1276 if --with-gpg and --enable-stealth are used together (reported
1277 by Anthony Caetano)
1278 * sh_unix.c, samhain.c, sh_calls.c: fix problems with descriptive
1279 error messages (larger GLOB_LEN, stat fills aud_err_message)
1280
12811.7.9 (30-06-2003):
1282 * sh_err_log.c: fix segfault on SIGABRT (dereference of freed memory),
1283 problems with SIGABRT noticed by Brian and Alf B Lervåg
1284 * deploy.sh.in: fix some bugs (found by Alf B Lervåg)
1285 * scripts/chroot.sh: fix typo (found by Alf B Lervåg)
1286 * configure.ac (khide): search also for 'd sys_call_table' (noted by
1287 cuek_saja)
1288 * strip whitespace before checking gpg checksum (noted by D. Thiel)
1289 * manual (faq section): explain how to stop console output
1290 * Makefile.in: fix re-naming of yule with --enable-install-name
1291 * HOWTO-client+server.html: fix typo (noted by xavier renaut)
1292 * configure.ac: escape '-' in awk regex (required by GNU awk 3.1.1)
1293
12941.7.8 (28-05-2003):
1295 * sh_unix.c: new mlock implementation with reference count
1296 and page alignment (fix for solaris problem)
1297 * kern_head.c: search also for 'xxxxxxxx d sys_call_table'
1298 * sh_html.c: write status comment (for Beltane 2)
1299 * add CL option --delimited for comma-delimited signature database dump
1300 * sh_mail.c: check exit status of push_list to fix counting bug
1301 (bug reported by Alan Moore)
1302 * configure.ac: add error message to --with-libs
1303 * fix spelling of $DAEMON in init script (noted by C. Grigoriu)
1304 * fix missing initgroups()
1305
13061.7.7 (06-05-2003):
1307 * sh_forward.c: fix bug if compiled with --enable-udp, but disabled
1308 in config file (found by Andy OBrien)
1309 * sh_database.c: sh_database_entry(): size -> c_size (two places)
1310 to fix writing of '\0' to arbitrary places :(
1311 (problem pointed out by Stefan Giesen)
1312 * profiles/*/configopts: fix --with-base -> --enable-base
1313
13141.7.6 (24-04-2003):
1315 * sh_forward.c, entry.html, head.html: fix/additions by Stefan Giesen
1316 * fix samhain_hide for the O(1) scheduler used by RedHat:
1317 configure.ac, acconfig.h: check for next_task in struct task_struct
1318 samhain_hide.c: use find_task_by_pid if no next_task in task_struct
1319 * samhain_erase.c: add MODULE_LICENSE("GPL") to fix warning
1320
13211.7.5 (15-04-2003):
1322 * sh_cat.c, sh_forward.c, sh_hash.c: fix double 'msg' tag
1323 * manual: point out the bmaxdata problem on AIX in faq section
1324 * trustfile.c: don't check symlinks (permissions of directory count)
1325 * sh_schedule.c: fix problem with daylight saving switchover
1326 * sh_samhain.c: close all open fd's >2 before reading the conf file
1327 * sh_unix.c: fix dereferenced NULL pointer when exiting on non-existing
1328 user
1329 * sh_forward.c: fix dereferenced NULL pointer when exiting on udp error
1330 * sh_forward.c: place timestamp code before select() timeout handler
1331 * fix incorrect class of timestamp messages (conflict with manual)
1332 * sh_readconf.c, sh_forward.c: new config option SetStripDomain
1333 * configure.ac: add warning if /lib/modules/`uname -r`/build/include
1334 not found
1335 * samhain_hide.c: adapt for RedHat 2.4 kernel (fetch sys_call_table
1336 address from System.map)
1337 * sh_err_syslog.c: fix for Solaris
1338 * samhain.spec.in: strip REQ_FROM_SERVER from config file install path
1339
13401.7.4 (21-03-2003):
1341 * configure.ac: fix bug in defargs (--with-base > --enable-base)
1342 * aclocal.ac: detect unsupported options
1343 * kern_check: add syscalls, skip unused syscalls
1344 * fix Manual (--enable.../--with... inconsistency)
1345 * add two HOWTOs (signed files, server/client)
1346 * moved manual into new subdirectory docs/
1347 * add admin scripts by S.Bailey/M.Redinger
1348 * option to have a version string in db file
1349
13501.7.3 (23-02-2003):
1351 * samhain-install.sh: use yule user key for signing on install
1352 * fix a bug in sh_err_console.c (attempted write to const char)
1353 * sh_gpg.c: if server, always use ~unprivileged_user/.gnupg
1354 * Makefile.in: make target 'trustfile' depend on config.h
1355 * configure.ac: don't use install_name before it is defined ...
1356 * sh_tiger0.c: fix bug in checksum computation introduced in 1.7.2
1357 * samhain.c: make sure daemon cannot be forced into 'update' mode
1358 * sh_hash.c: remove AIX workaround (AIX has been fixed meanwhile)
1359
13601.7.2 (04-02-2003):
1361 * sh_kern.c: use sys_call_table address from System.map
1362 * fix for reserved SQL keyword 'group'
1363 * add AC_SYS_LARGEFILE to configure.ac
1364 * allow separate client-specific log files for server
1365 * sstrip.c: compile sstrip code only for i386
1366 * sh_unix.c: closeall: don't close trace file
1367 * slib.c: don't trace sl_is_suid (leads to recursion in trace handler)
1368 * samhain-install.sh.in: fix detection of LSB compliant systems
1369 * sh_tools.c: get_client_*_file: lstat -> stat to allow symlinks
1370 * sh_forward.c: sh_forward_do_write: set O_NONBLOCK for fd
1371 (may block otherwise, for no good reason apparently ...)
1372 * samhain.spec.in: replace %configure with ./configure
1373 * sh_unix.c: re-write signal handling (use __malloc_hook et al. to
1374 check whether we are in the middle of a free/malloc/realloc/memalign)
1375 * sh_unix.c: use new safe_logger() function to log from signal handler
1376 * sh_err_log.c: fix xml
1377 *
1378 * fix Makefile.in to exit non-zero on compile failure
1379 * database init: create index on log_host, entry_status
1380 * sh_suidchk.c: fix path building
1381 * sh_tiger0.c: read larger blocks
1382 * sh_hash.c: cast inode to UINT32
1383 * sh_tools.c: check that config/database files size fits in uint
1384 * sh_error.c: export flag_err_debug to avoid unnecessary calls
1385 * sh_unix.c: save the open() call in sh_unix_getinfo_attr()
1386 * profiles/redhat_i386/bootscript: add # description field
1387 * deploy.sh.in: set owner + permissions for files in yule_filedir
1388 * profiles/debianlinux_i386: fix bootscript
1389 * Makefile.in: fix deploy file lists and targets (include init+scripts)
1390 * MLOCK GOOD/BAD -> SL_FALSE/SL_TRUE
1391 * sh_mail.c: GOOD/BAD -> SL_FALSE/SL_TRUE (AIX sys/param.h)
1392 * sh_err_syslog.c: split long messages rather than truncating
1393 * sh_error.c: allocate msg to fix truncation limit
1394 * sh_unix.c: closeall fd's >= 3 in non-daemon mode (inherited
1395 filedescriptors may exceed FOPEN_MAX, causing problems in
1396 sl_open_file)
1397 * sh_err_console.c: avoid stdio
1398 * trustfile: dirz: make swp[] static
1399 * slib.c: speed up sl_strlcat
1400 * clean up some bad heap allocation (PATH_MAX+(1|2) -> PATH_MAX)
1401 * remove some unused code
1402 * slib.c: support long long int in the snprintf replacement
1403 * configure.ac: new configure macro to check whether sa_sigaction works
1404 * Makefile.in: make sstrip, encode dependent on config.h
1405
14061.7.1a (08-01-2003):
1407 * fix a syntax error in samhain-install.sh.in
1408
14091.7.1 (07-01-2003):
1410 * search runlevel scripts in ./init or ./
1411 * handle all distro-specific Linux runlevel script issues
1412 within a single script
1413 * support install-boot on Yellow Dog Linux and Slackware
1414 * samhain-install.sh: fix a bug for unknown Linux
1415 ('"' not closed, DVER not set)
1416 * samhain-install.sh: check for /etc/yellowdog-release
1417 * sh_database.c: fix missing entry for 'userid' in attr_tab[]
1418 * fix debian.rules.in (disable sstrip)
1419 * update make targets: 'srpm', 'srpm-dist', 'rpm'
1420 * check for zlib if mysql is used
1421 * workaround for NetBSD bug with libresolve
1422 * fixed problems with spec files
1423
14241.7.0 (22-12-2002):
1425 * improved spec files (Andre Oliveira da Costa <brblueser@uol.com.br>)
1426 * sh_unix.c: fix a dereferenced static pointer in tf_trust_check
1427 * runlevel scripts: remove pid file after stop
1428 * make the data directory read-only for the daemon
1429 * treat 'localhost' specially in MX resolver
1430 * sh_err_log.c: set sh.flag.log_start == TRUE after writing </trail>
1431 * deploy.sh.in: fix quoting (fix by Simon Bailey)
1432 * slib.c: make sl_get_euid et al. behave well if uids not stored
1433 * trustfile.c: use euid = uid(SH_IDENT) if server
1434 * sh_mail.c: include an MX resolver
1435 * Makefile.in: install-user routine for user installation
1436 * have yule drop root
1437 * sh_tools.c: open_temp use logdir if server
1438 * unified options for runlevel script
1439 * HP-UX, IRIX runlevel scripts
1440 * AIX inittab entry
1441
14421.6.6 (13-12-2002):
1443 * configure.ac: solaris cc -O2 -> -xO2
1444 * sstrip.c: avoid alpha architecture
1445 * profiles/solaris/configopts: no --enable-static
1446 * sh_forward.c: sh_forward_req_file: copy argument to local array
1447
14481.6.5 (04-12-2002):
1449 * sh_utmp.c: set userlist = NULL in sh_utmp_end ()
1450 * sh_unix.c: do not assume that environ is sane
1451 * exit handler: write </trail>
1452 * sh_log_file(NULL): test sh.flag.log_start != S_TRUE
1453 * FreeBSD rc script does not blindly accept content of pid file
1454 * configure.ac: allow 'localhost' for log server
1455 * sh_calls.c: retry_connect: ntohs (port)
1456 * testrun_2[abc].sh: --with-logserver=localhost for client
1457
14581.6.4 (12-11-2002):
1459 * sh_tools.c: fix error when escaping '=<'
1460 * fix the 'make srpm' target
1461 * deploy.sh.in: avoid that client is named 'yule'
1462 * define memset to sl_memset
1463 * fix type cast of uid_t, gid_t
1464
14651.6.3 (31-10-2002):
1466 * fix options for Sun/Solaris native compiler
1467 * sh_unix.c: MSG_FI_LIST (line 2333): cast theFile->size to fix error
1468 * test sstrip on freebsd
1469 * default config file for freebsd
1470 * make target to build .deb packages
1471 * sh_readconf.c: fix bug in error message
1472 * samhain.c, sh_suidchk.c: fix initialization of suidchk
1473 * samhain-install.sh.in: don't remove config file by default
1474 * samhain-install.sh.in: support complete de-installation
1475 * samhain-install.sh.in: add support for Gentoo, FreeBSD, and Solaris
1476 * samhain-install.sh.in: check more paths
1477 * sh_unix.c: fix sys_siglist declaration [NetBSD portability issue]
1478 * sh_calls.c: save error message in retry_lstat()
1479
14801.6.2 (04-10-2002):
1481 * make target to build rpms
1482 * update samhain.spec.in, samhain.startRedHat
1483 * support DESTDIR, as in 'make DESTDIR=/what/ever install'
1484 * explicitely set -fno-omit-frame-pointer b/o gcc bug
1485 * mv configure.in to configure.ac to benefit from autoconf wrapper
1486 * sh_modules.c, sh_modules.h: add mod_reconf() to run at SIGHUP
1487 * slib.c: fix debug messages (no msgs for dlogActive <= 1)
1488 * sh_schedule.c, samhain.c, sh_suidchk.c:
1489 scheduler may accept multiple schedules
1490
14911.6.1 (04-09-2002):
1492 * sh_schedule.c: bugfix (executes only after first day)
1493 * rm obsolete WITH_TRACE stuff
1494 * new dlog() function for debug logging
1495 * some more descriptive error messages
1496
14971.6.0 (27-08-2002):
1498 * omit the -fomit-frame-pointer option (bugs in some gcc versions ?)
1499 * sh_error.c: fix escape mode when logging to database
1500 * sh_forward.c: fix error (twice escape) in recv_syslog_socket
1501 * sh_tools.c: change escape mode for server-received data
1502 * sh_mem.c: change ulong -> size_t in sh_mem_malloc()
1503 * configure.in: fix localstatedir if --prefix=USR
1504 * sh_hash.c: snprintf() -> sl_snprintf()
1505
15061.5.5 (07-08-2002):
1507 * sh_err_log.c: fix incorrect xml syntax for client messages
1508 logged by server
1509 * sh_err_log.c: fix incorrect '</trail>' entries on client EXIT
1510 * sh_files.c: introduce file_class_next
1511 this fixes the problem that a policy for the directory
1512 inode erroneously becomes a policy for the directory itself.
1513
15141.5.4 (17-07-2002):
1515 * sh_hash.c: fix buffer overflow with (micro-)stealth
1516 * sh_database.c: set path[] 1024 -> 12288
1517 * sh_database.c: set query[] 2048 -> 16383
1518 * sh_database.c: set values[] 1024 -> 16383
1519 * sh_forward.c: larger limit for message size (16 kB)
1520 * trustfile.c: set MAXFILENAME 2048 -> 4096
1521 * fixed a bug in the handling of filenames with embedded newlines
1522 * sh_files.c: fix missing sh_util_safe_name() in debug output
1523 * --with-sender can specify a full address
1524 * fix xml log in a backwards compatible way
1525
15261.5.3 (03-07-2002):
1527 * fix combination of stealth and sql logging
1528 * fix some more places where invalid UIDs/GIDs trigger errors
1529
15301.5.2 (01-07-2002):
1531 * include solaris config file from (sean [at] boran d.o.t com)
1532 * test for files/dirz defined twice in the configuration file
1533 * option to disable reverse lookup on outbound connections
1534 * option to use socket peer as client name (with name resolving)
1535 * sh_html.c: fix an HTML bug (twice </head><body>)
1536 * sh_suidchk.c: fix warning on AIX b/o dirname()
1537 * allow logging server -> syslog if yule is NOT configured to
1538 receive syslog messages
1539 * define PRIi64 to "lld" if undefined
1540 * invalid UIDs: use gid/uid as name, error level SeverityNames
1541 * minor fixes for connect_port
1542 * sh_hash.c: flush output of db listing before _exit()
1543 * configure.in: fix incorrect default ${install_name} for server
1544 * configure.in: try harder to find mysql.h / libpq-fe.h
1545 * sh_files.c: sh_files_checkdir:
1546 closedir() early to not exhaust OPEN_MAX
1547
15481.5.1a (30-05-2002):
1549 * fix missing LSB init script
1550
15511.5.1 (27-05-2002):
1552 * fix '-t update' option
1553
15541.5.0a (23-05-2002):
1555 * fix configure.in
1556
15571.5.0 (22-05-2002):
1558 * include solaris nosuid patch from (nathoo [at] co d.o.t ru)
1559 * similar fix for bsd nosuid
1560 * speed up -t update
1561 * convert manual to DocBook, distribute html and ps
1562 * fix some more problems with configure.in, Makefile.in
1563 * fix testsuite, add tests for udp, mysql
1564 * MSG_TCP_MSG: host -> remote_host
1565 * convert to autoconf 2.53
1566 * make c_bits.sh exit with status 0
1567 * sh_database.c #include "mysql.h" --> <mysql.h>, ditto libpq-fe.h
1568 to avoid dependency tracking problems
1569 * samhain.c remove *YULE* #ifdefs
1570 * acconfig.h remove *YULE* #undefs
1571 * samhain.c: procdirSamhain: lstat --> stat (allow symlink)
1572 * configure.in: add checks for correct user input
1573 * Makefile.in: add automatic dependency tracking
1574 * depend-gen: tool to figure out dependencies
1575 * chkconfig comments in redhat start scripts
1576
15771.4.8:
1578 * sh_database.c: fix missing attr_old, attr_new, (from)host columns
1579 * configure.in, Makefile.in: fix an error in the configfile
1580 definition with REQ_FROM_SERVER
1581 * sh_err_console, sh_err_log: avoid recurrent failure messages
1582 * timeout on read from files (/proc)
1583 * fix errrors with setjmp/longjmp/alarm
1584 * fix memory leak in server (~20 byte/file download in sh_tools, 930)
1585 * check gpg signature for files downloaded from server, add a
1586 regression test
1587 * fix chown in solaris bootscript
1588 * provide second scheduler for file check
1589 * provide scheduler for file check
1590 * provide scheduler for SUID check
1591
15921.4.7 (08-04-2002):
1593 * make daemon control LSB-compliant (arguments, exit status)
1594 * set log_ref = 0 for server messages
1595 * boolean option SetDBServerTstamp to disable entering server
1596 timestamps for received client messages into database
1597 * sh_suidcheck: check for "nosuid" mount option if getmntent is used
1598 * fix logrotate script in manual (reported by Scott Worthington)
1599 * don't strip numerical IP addresses
1600 * check item->status_now != CLT_TOOLONG in client_time_check()
1601 * set log_host to client in db client message
1602
16031.4.6a (20-03-2002):
1604 * define prefix in deploy.sh
1605
16061.4.6 (19-03-2002):
1607 * modify samhain_hide.c to hide processes on new Linux kernels
1608 * better error diagnostics in kern_head.c
1609 * fix compile error in all_items ()
1610 * check length of install-name in enable-khide (max is 15)
1611 * define exec_prefix in deploy.sh.in
1612 * make configure a bit more cross-compiler friendly
1613
16141.4.5 (07-03-2002):
1615 * Make sure missing file is reported even if ptr->reported == S_TRUE
1616 because the file has been added.
1617 * propagate 'reported' flag from sh_files_checkdir() into file list
1618 * close checkfd in sh_gpg_check_file_sign()
1619 * sh_derr(): kill(parent, SIGCONT) after ptrace(PT_DETACH,...)
1620 * use sh.srvcons.name in dbg() to get debugging info from daemon
1621 * option to log file timestamps with localtime instead of GMT
1622 * comment out MSG_FI_ADD in sh_dirs_chk () - obsoleted by mandatory
1623 sh_files_filecheck(directory) that triggers MSG_FI_ADD in sh_hash.c
1624 * set ptr->reported = S_FALSE; for reappeared files in sh_files_chk()
1625 to make sure re-disappearing will get reported
1626 * new function sh_hash_set_missing() to remove file record
1627 without (duplicate) 'missing' message
1628 * make sure all items are reported for added files
1629 * fix stealth mode with sh_kern (encode sh_ks.h -> sh_ks_xor.h)
1630 * clarify in the documentation which gpg options to use for signing
1631
16321.4.4 (11-02-2002):
1633 * check that parent process has exited before writing PID file
1634 * promote MGG_W_CHDIR to SH_ERR_ERR
1635 * add error message to sh_unix_testlock
1636 * fix missing _() macro in sh_aud_set_functions
1637
16381.4.3 (05-02-2002):
1639 * don't check attributes for symlinks (may cause device access)
1640 * add USE mysql; USE samhain; to samhain.mysql.init
1641 * point out the MessageHeader/mysql problem in manual
1642 * add -lz to LIBS for mysql
1643 * strip after install, avoid double strip
1644
16451.4.2 (27-01-2002):
1646 * support for EGD
1647 * fix some more problems with install-deploy / deploy.sh
1648 * fix a bug in profiles/suselinux_i386/bootscript (INSTALL_NAME_)
1649 * fixed the 'external logging' test (init rather than none in rc file)
1650
16511.4.1:
1652 * SuSE: include run level 4+5
1653 * install location of hiding kernel modules changed - some insmod
1654 variants do not test for /lib/modules/$(uname -r)/module_name.o
1655 * new make targets 'install-deploy', 'uninstall-deploy'
1656 * fixed make targets 'deploydir', 'deploydirfast'
1657 * bail on unsupported CL option in deploy.sh
1658 * fix various bugs in deploy.sh
1659
16601.4.0 (16-01-2002):
1661 * fixed missing 'dirname' on Mac OS X
1662 * fixed && tested for/with postgres
1663 * 'user=' -> 'userid=' (reserved word in sql)
1664 * fix the endianess + size of file database; this changes db format
1665 for any non-Linux OS
1666 * --enable-old-format for old (V1.3) database format
1667 * getopt, samhain.c, samhain.h: option -f to loop if not daemon
1668 * sh_hash: list numeric + char data to allow file db update on
1669 server side
1670 * sh_database: modify handling of integer (long) data
1671 * sh_database: datetime in database
1672 * sh_database: hash field in database
1673 * sh_database: rewrite database insert string construction
1674 [use INSERT INTO log (fields) VALUES (values);]
1675 * makefile suse 7.x runlevel entries
1676
16771.3.7 (06-01-2002):
1678 * fix incorrect escape in sh_tools_safe_name
1679 * fix sh_error_handle (4. argument) in sh_extern.c
1680
16811.3.6c:
1682 * fix segfault in sh_database (mysql logging) on solaris
1683
16841.3.6b (03-01-2002):
1685 * fix syntax error ('==') in Makefile.in
1686 * fix configure.in (path for /lib/modules/$(uname -r)/build/include)
1687 * fix sh_kern.c (redeclaration of 'j')
1688
16891.3.6 (03-01-2002):
1690 * sh_kern.c: check integrity of int 80h vector
1691 (SucKIT rootkit - Phrack 58)
1692 * make sure childs in sh_kern are wait()'ed for
1693 * provide start/stop/restart/reload/status interface
1694 * fix a potential segfault (dereferenced NULL pointer) in the server
1695 * use sh_util_flagval for sh_unix_setdaemon
1696 * documentation for logging to SQL database
1697 * configure.in: check for -I/lib/modules/$(uname -r)/build/include
1698 * fix trustfile.c to ignore invalid users
1699 * separate 'make install-samhain' and 'make install-yule'
1700 * separate default log/pid/config files for server/client
1701 - less problems running server and client on same host
1702 * rewrite deploy.sh(.in):
1703 - don't use (make|install) if deploying
1704 - use command line options
1705 - better integrate into server environment
1706 - write install db
1707 * always write a pidfile if daemon
1708 * don't use server's config file as fallback for downloading client
1709 * don't overwrite config file when doing 'make install'
1710
17111.3.5 (28-12-2001):
1712 * fix --enable-message-queue for newer glibc versions
1713 * log to SQL database: implemented, but undocumented yet,
1714 needs to be tested further
1715 * xml: escape received syslog messages
1716 * xml: rename 'time' to 'tstamp'
1717 * make targets: make [un]install-[boot-]yule
1718 (for server-only installation)
1719 * fix samhain_hide.c for 2.4 kernel
1720 * fix sh_kern for updated samhain_hide.c
1721 * new option -j to just list the logfile
1722 * sh_getopt.c: recognize -Dt check for -D -t check
1723 * sh_tiger0.c: fix compiler warning (memmove) on Solaris
1724
17251.3.4 (12-12-2001):
1726 * sh_suidchk.c: option to limit files per second
1727 * sh_unix.c: option to limit (kilo)bytes per second
1728 * sh_hash.c: fix potential problem with '\n' in filename
1729 (not backward compatible if there are filenames with '=')
1730
17311.3.3 (03-12-2001):
1732 * sh_readconf.c, samhain.h, samhain.c, sh_suidchk.c:
1733 option SetNiceLevel to set scheduling priority
1734 * sh_hash.c: bugfix for database listing on Solaris
1735 * taus_seed: bugfix for emergency backup rng seed
1736 * sh_util_safe_name: fix for XML
1737 * sh_utmp_set_login_activate: use sh_util_flagval
1738 * sh_utils.c: sh_util_obscurename: rm 'space' from list
1739 * more backtrace macros
1740 * sh_util_flagval: fix bug to recognize 1/0
1741 * fix test scripts testtimesrv.sh, testext.sh (test.sh 6/5)
1742 * rm stray debug fprintf in sh_srp.c
1743
17441.3.2 (27-11-2001):
1745 * sh_hash.c: fix an error introduced in 1.3.1
1746 * set RLIMIT_CORE to RLIM_INFINITY if --enable-debug
1747
17481.3.1 (25-11-2001):
1749 * slib.c: get backtrace with --enable-debug
1750 * sh_unix.c: allow core dumps when --enable-debug
1751 * configure.in: fix default message queue permissions
1752 * sh_suidchk.c: automatically include suid/sgid files in database
1753 * sh_suidchk.c: check all suid/sgid files
1754 * sh_hash.c: don't insert duplicates when reading the database
1755 * sh_utmp, sh_kern, samhain: fix 1sec offset in timer
1756 * sh_unix.c: don't require /dev/random to be non-world-writeable
1757 * server: fix segfault in zAVLTree.c if avltree == NULL (no clients)
1758 * client: fix segfault on Solaris if path_conf == NULL
1759 * testrun_1b.sh: \(^/.*\) -> \(/.*\) for Solaris sed
1760
17611.3.0 (31-10-2001):
1762 * support compiling with GNU gmp library
1763 * set 3 sec timer on client_time_check to avoid excessive (and
1764 unnecessary) calls under heavy load
1765 * replace sl_strlen with a macro
1766 * store client_t structure in AVL tree
1767 * database format incompatible with previous format, up the magic#
1768 * sh_html.c: cache entry template for speedup
1769 * slib.c: reset islong(double) in sl_printf_count
1770 * sh_hash.c: report on rdev change
1771 * sh_hash.c: print size in 64 bit
1772 * sh_hash.c: save in absolute size types
1773 * sh_unix.c: get values as appropriate type (time_t, dev_t, ...)
1774
17751.2.10:
1776 * update MANUAL
1777 * sh_unix.c: tiger_hash -> tiger_generic_hash
1778 * sh_readcon.c: DigestAlgo option
1779 * sh_tiger0.c: add MD5 and SHA1
1780 * sh_unix.c: fix minor problem with win2k/cygwin
1781
17821.2.9 (17-10-2001):
1783 * fix problem with entry template/empty hostname
1784 * fix MASK_USER_ (MTM -> ATM)
1785 * typo fixed in configure.in (${install_name} -> {install_name})
1786 * bugfix group_old -> size_old in XML code
1787 * skip armor header in signed files
1788
17891.2.8 (29-09-2001):
1790 * Mac OS X: in sh_getopt.c, rename table[] to op_table[] to avoid
1791 obscure compiler warning
1792 * Mac OS X: fix test scripts
1793 * Mac OS X: import newest config.guess, config.sub from ftp.gnu.org
1794 * implement deadtime in syslog recv code to protect against flooding
1795 * sh_err_log: sl_close(fd) if lock|forward fails
1796 * compliance with Filesystem Hierarchy Standard -- Version 2.2 final
1797 * add policies User0, User1
1798 * fix compile problem (FreeBSD) in sh_suidchk.c
1799 * macro to check for debugger breakpoints (linux/i386)
1800 * check for solaris (does not work) in sh_derr (--enable-ptrace)
1801 * option to listen on 514/udp for syslog, drop root
1802 irrevocably if compiled thus
1803 * use (check_mask & MODI_ATM) to decide whether to reset utime
1804 * reset the policy masks on sighup
1805 * option to write XML log messages
1806 * cleanup of message catalog
1807 * modified error messages for BADCONN
1808 * error messages for Rijndael
1809 * block recursive error messages within sh_error_handler()
1810 - would hang the machine ... -
1811
18121.2.7:
1813 * sh_files, sh_utils: check top level directory
1814 * sh_kern, sh_cat, kern_head: check syscall code, fork subprocess
1815 for reading from /dev/kmem
1816 * include /boot in default samhainrc
1817 * change source distribution signing/packaging system
1818 * Makefile, README, MANUAL: adhere to file system standard,
1819 document new locations
1820 * fix a bug in samhain_hide.c
1821
18221.2.6:
1823 * reset list of trusted users before config file re-read
1824 * TrustedUser=... can be a list
1825 * fix severity for files missing from IgnoreAll
1826
18271.2.5:
1828 * include example_pager.pl, example_sms.pl scripts
1829 * explain paging/sms setup in docs
1830 * allow manual exclusion of a directory in suidcheck
1831 * automatically track all file changes
1832 * remove missing files from in-memory database
1833 * add $(KERN) to DEPLOYFILES
1834
18351.2.4:
1836 * log IP address for login/logout events, if supported by the OS
1837 * release block in globerr (callback)
1838
1839-------------
1840
18411.2.3:
1842 * fix problem with reading stealth configuration
1843 * fix a few formats in sh_cat.c
1844 * always use strncmp for file system type check in sh_suidchk.c
1845 (trailing 'fs' may be system specific for some types)
1846 * no bare LF in messages (RFC 2822)
1847 * no lines longer than 998 chars (RFC 2822)
1848 * fix error in testrc_1
1849
18501.2.2:
1851 * make tmp file directory a compile time option
1852 * fix minor bugs in tmp file allocator (potential memory leak,
1853 double slash if root directory)
1854 * obsolete testpipe script removed
1855
18561.2.1:
1857 * fix memory alignment in rijndael-api-fst.c: blockEncrypt()
1858 * fix byte order in HMAC code (compatibility fix for Linux/HP-UX)
1859 * removed a debug fprintf()
1860
18611.2.0:
1862 * fix a bug in the HMAC implementation (thanks to Cesar Tascon
1863 for help in tracking down this one)
1864 * module to check the file system for SUID/SGID files
1865
18661.1.16 (never released):
1867 * fix the recursion depth -1 option as described in the manual
1868 * optional database reload on SIGHUP
1869 * fix a race condition when checking that /dev/random is a charakter
1870 device
1871 * redirect stderr to /dev/null for c_random
1872 (AIX may segfault in netstat...)
1873 * check whether /dev/random is a charakter device in c_random.sh
1874 (we know at least one sysadmin who has set up a fake /dev/random ...)
1875 * don't give NULL as 2. and 3. arg to execve if not Linux - some
1876 Unices (notably Solaris) don't like it
1877 * init ptr = NULL in my_malloc (compiler warning)
1878 * make the bitmask for tests configureable (suggestion by A. Dunkel)
1879 * make the bitmask for tests a static variable
1880 * make (database/logfile/lockfile) path configurable
1881 (to run multiple instances of samhain from an NFS share - on the
1882 wishlist of J. Patton)
1883
18841.1.15 (never released):
1885 * fix minor error in testcompile.sh (rm test_log only at start)
1886 * return from subroutines on sig_terminate == 1
1887 (faster exit on SIGTERM)
1888 * fix re-configuration of addresses
1889 * use sh_util_flagval() in sh_mail_setFlag and sh_kern_set_activate
1890 * SysV message queue as compile option
1891 * config file option to set console device
1892 * removed the pre 1.1.9 code bloat
1893 * don't print the LOGKEY to the console
1894
18951.1.14:
1896 * fix an error in the setup consistency check
1897 * make target to uninstall runtime files
1898 * trustfile.c: check return code of readlink(), fix off-by-one error
1899 * sh_files.c: fix placement of terminator after readlink() call
1900 * sh_files.c: fix a missing set_suid()/unset_suid()
1901 - suid should work, but is not recommended -
1902 * more debug statements in c/s code
1903 * avoid re-entry in sh_unix_sigexit
1904 * put a block around free() and malloc() in wrapper functions
1905 * ditto for glob()/globfree(), regcomp()/regfree(), fdopen()/fclose()
1906 - i.e. avoid corrupting the heap from a signal handler -
1907
19081.1.13:
1909 * optimized the size of the configure script somewhat
1910 * modify the compile and hash test scripts
1911 * read '\0's in sh_unix_getline
1912 * exponential schedule for connection attempts
1913 * make stealth working properly with signed files
1914 - config file should be signed now before embedding in picture -
1915 * fix a race in using signed files
1916 * updated err messages for PWNULL, GRNULL
1917 * add missing shell script for test 11
1918 * add mandatory source file/line info with -p debug
1919 * add mandatory source line info with BADCONN
1920 * fix a latex error in the manual
1921
19221.1.12:
1923 * debug output to console if compiled with --enable-debug and
1924 running as daemon
1925 * make reportonlyonce=true the default
1926 * make sure state changes of a file are always reported, even
1927 with reportonlyonce=true
1928 * Linux kernel modules (samhain_hide, samhain_erase)
1929 * fixed incorrect return value of sh_util_flagval
1930 * fixed an error in sh_files.c: happens with -t init and first
1931 file that is checked does not exist
1932 * revised install/uninstall targets in the Makefile
1933 * module to check for clobbered kernel syscalls (tested on Linux 2.2)
1934 * more diagnostic error messages in sh_gpg.c
1935 * more diagnostic error messages in sh_mail.c
1936 * error in mail.c fixed
1937 (address -> address_list[i] for multiple recipients)
1938 * docs updated, better(?) explanation of signed files
1939 * skip over path in gpg checksum output
1940 * check client name against IP address and FQDN
1941 * fix for --disable-* in config file
1942 * fixed a server crash (MSG_TCP_OKMSG without arg)
1943 if the server is run with debug level output threshold
1944 * catch EAGAIN in sh_gpg.c pipe reader
1945 * fix the 'external logging' test to make it work on BSD
1946 * error message if no local path to init DB
1947 * check for i86/Solaris in configure (vsnprintf prototype)
1948 * make SRP the default
1949
19501.1.11:
1951 * make log file verification more convenient
1952 * fix problem with message classes in stealth mode
1953 * linux: do not try to read file attributes for devices
1954 * handle the root directory correctly (avoid "//" in listing)
1955 * fix problems with blockin on FIFOs/char dev
1956 pointed out by I. Rogalsky (rog@iis.fhg.de)
1957 - open in nonblocking mode for read, then set to blocking
1958 - open file only if regular
1959 * fix alignment in memory profiler
1960
19611.1.10:
1962 * minor code cleanup
1963 * fix an error in trustfile.c (handling of empty/incomplete
1964 group entries in /etc/group, bug report by A. Capriotti )
1965
19661.1.9:
1967 * compatibility option for old behaviour (plain hash instead
1968 of HMAC, ECB instead of CBC mode)
1969 * use CBC rather than ECB mode for encryption
1970 * use HMAC-TIGER for message authentication codes
1971 * handle NULL data in sh_tiger_hash
1972 * option to set syslog facility (default is LOG_AUTHPRIV)
1973 * longer timeout (300 sec) on /dev/random if no /dev/urandom
1974 * fix minor output error with stealth option
1975 * option not to log names of config/database files on startup
1976
19771.1.8:
1978 * fix error in syslog routine
1979 * fix missing 'test' in configure.in
1980 * fix error in replace_tab() in sh_html.c
1981 * fix minor memory leak in sh_util_regcmp()
1982
19831.1.7:
1984 * timeout on read_mbytes (from /dev/random; fallback to /dev/urandom)
1985 * fix for FreeBSD: ut_user -> ut_name in sh_utmp.c
1986 * fix for Alpha: consider $ac_cv_sizeof_unsigned_int_ in configure.in
1987 * fix for Alpha: format string in sh_tiger0.sh
1988 * on Linux, now compiles cleanly with
1989 -Wall -W -Wstrict-prototypes -Wcast-align
1990 * fix problem with recursion depth
1991 (pointed out by Vic <hvicha@mail.ru>)
1992 * #include "sh_tools.h" in sh_unix.c and fix the
1993 --with-timeserver option (reported by Vic <hvicha@mail.ru>)
1994 * place read_port(), MSG_TCP_NETRP outside ifdefs
1995 * close fd/zero skey before execve
1996 * verify client name against socket peer
1997 * ... with configureable error priority
1998 * use strcmp() rather than strncmp() in search_register()
1999 * fix race between lstat() and open() for checksum
2000 (reported by dynamo <dynamo@ime.net>,
2001 JJohnson <JJohnson@penguincomputing.com>)
2002 * enable globbing for filenames
2003 * fix Solaris problem: siginfo_t may be NULL
2004 * fix missing SL_EBADGID in tf_trust_check
2005 * test case for external scripts, fix flushing pipe
2006 * fix a typo in sh_ext_type
2007 * do an fdexec w/checksum on Linux if calling external program
2008 * even safer tmp file creation
2009 * allow db update
2010 * fix compile options for --enable-debug
2011 * fixed a spelling error in the output
2012 * test program for full CS support (config/database download)
2013 * tell which file is searched for cs download
2014
20151.1.6:
2016 * fix bug in sh_readconf_line (segfault on erroneous config lines)
2017
20181.1.5:
2019 * sh_unix.c: sh_unix_getinfo_attr: f -> flags
2020 * use gettimeofday as last resort
20211.1.4:
2022 * fix AIX compiler warning in sh_forward (cast arg1 of sh_tiger_hash
2023 to (char *)
2024 * configure: add static link flags for some more os (from tar)
2025 * don't strip twice (some stupid systems abort)
2026 * fix for reading from /dev/random on non-Linux systems (untested)
2027 * sh_mail.c: end all message lines with \r\n
2028 * stealth: ignore \r, \"
2029 * take out tracing from --enable-debug (presently useless anyway)
2030 * fix some remaining cleartext with debug && stealth combined
2031 * fixed a small memory leak in sh_err_log.c
2032
20331.1.3:
2034 * fixed circular logic in taus_seed() (fallback method only)
2035 * fix for missing _SC_OPEN_MAX (runaway close())
2036
20371.1.2:
2038 * implement message classes
2039 * let server recognize client message severity and class
2040 * secondary log server
2041 * keep database in memory (allows to close file
2042 if retrieved from server)
2043 * encrypt client/server communication
2044
20451.1.1:
2046 * Compilation problems with native Solaris compiler fixed
2047 * fill in euid/ruid variable
2048 * manual.pdf --> MANUAL.pdf
2049 * debug sh_util_formatted()
2050 * http refresh 120sec for server stat page
2051 * trace/debug options
2052 * fixed problem with utmp.c options
2053 * fixed problem with sh_mail_setaddress
2054 * option for custom message header
2055 * fixed problem in compdata
2056 * fixed problem in mail verification
2057 * remove eventual trailing '/' in file names
2058 * fixed problem with report string for modified files
2059 * option to report in full detail
2060
20611.1.0:
2062 * Move error messages to catalog
2063 * Make error message format more uniform
2064 * Wrap sytem calls that could be interrupted by signals
2065 * Warn on append to database
2066 * Option for full details on mod. files
2067 * Option to report only once on mod. files
2068 * Generally speaking, major modifications with potential new bugs
2069
20700.9.5:
2071 * sh_hash.c: fixed erroneous checksum for config file
2072 * sh_html.c: fixed erroneous timestamp (last)
2073 * sh_tools.c: fixed connect_port (set port for cached address)
2074 * sh_srp.c: fix for '00' (='\0') in pw
2075 (last two fixes by Andreas Piesk)
2076
20770.9.4:
2078 * samhain.c: fcntl(1, ..) -> fcntl(2, ..)
2079 * sh_hash.c: copy 12 instead of 10 byte for c_attributes
2080 * 'empty directory' WARN -> INFO
2081
20820.9.3:
2083 * FreeBSD fixes:
2084 - c_random.sh: make sure /dev/random provides something
2085 rather than nothing
2086 - check for <netinet/in.h> and include it
2087 - include <sys/types.h> early
2088 - sh_utmp.c: fixed an occurence of ut_user
2089 - sh_utmp.c: #ifdef HAVE_UTTYPE static char terminated_line #endif
2090 - sh_forward.c: EBADMSG -> ENOMSG
2091 * sh_unix.c: check return value of gethostbyname
2092 * sh_entropy.c: fallback on /dev/urandom if /dev/random blocks for
2093 more than 30 sec
2094 * ... and fix the timestamp format ...
2095
20960.9.2:
2097 * ISO 8601 timestamps
2098 * Bugfix in sh_utmp (timestring overwrite)
2099 * don't use siginfo_t on Linux (garbage as of 2.2.14)
2100 * check for Linux capabilities bug when dropping root
2101 * include README for gcc compiler bug (pointed out by A. Piesk)
2102 * explicitely set -fno-strength-reduce with gcc
2103 * fixed ignoring missing files with the IgnoreAll policy
2104
21050.9.1:
2106 * more ext2flags (breaks backward database compatibility on Linux)
2107 * IgnoreAll policy modified - missing/added files reported with
2108 SeverityIgnoreAll (to handle files that may or may not be present)
2109 * Check all files, not only regular ones
2110 (bug in sh_files, originally introduced because checksum of
2111 regular files only is computed)
2112
21130.9:
2114 * use O_NOATIME if supported
2115 * --with-nocl takes argument (PW to re-enable CL parsing)
2116 * no daemon mode if initializing database
2117 * fixed segfault in yule with 'unknown file type' request
2118 * enlarged MAX_GLOBS 24 -> 32 and made the array linear
2119 * server uses last registry entry for any given client now
2120 * deploy.sh script to deploy clients to remote hosts
2121 * enhanced signal handling: SIGUSR1/SIGUSR2/SIGABRT/SIGQUIT/SIGHUP
2122 * allow y/Y/n/N for login monitoring (in addition to 0/1)
2123 * external logging scripts/programs
2124 * trustfile.c: define STICKY on Linux
2125 * reset signal mask when initializing
2126 * EINTR_RETRY wrapper
2127 * slib: sl_read, sl_write EINTR update
2128 * use sstrip when installing
2129 * more compact database format (breaks backward database compatibility)
2130 * larger download packets
2131 * TcpFlags unsigned char
2132 * cast to (char *) head in write_port
2133 * m(un)lock cast to (char *)
2134 * (1 << 31) --> (1UL << 31)
2135 * support e2fs attributes on Linux
2136 * fixes for AIX and Solaris native compilers
2137 * fixed Makefile for non-GNU make (pattern rule --> suffix rule)
2138
21390.8.1:
2140 * fixed 'is_numeric()' return value
2141
21420.8:
2143 * added option for static compilation
2144 * added option for stealth with non-hidden config file
2145 * added option for disabling command line parsing
2146 * all options can be set in the configuration file now
2147 * stealth: xor strings in database file
2148 * fixed bug in mailer code ([] in HELO)
2149 * print timestamp when asking for key
2150 * 'micro' stealth mode (no hidden configuration file)
2151 * simplified slib
2152 * int->long for uids/gids in trustfile
2153 * moved mailkey from data to code
2154 * shell script for entropy (stronger default key)
2155 * general code cleanup
2156 * better error checking in client/server code
2157 * detect out-of-sync messages
2158 * check state across protocol passes in server
2159 * make sure authentication is mutual
2160 * file download to client
2161 * reserve six file descriptors in server
2162 * mlock queue buffer if LOG_KEY
2163 * improved robustness in bignum (don't fail on free())
2164 * per-directory recursion depths
2165 * RFC821 compliance: empty line at end of header, To field, Date field
2166 * RFC821 compliance: make e-mail transfer relieable
2167 * fix detection of hardlink changes
2168 * checksum verification for calling gpg/pgp
2169 * CL option '-S' not required for server-only binary
2170 * eliminate CL options that may leak privileged information
2171 if the program is SUID
2172 * skip leading white space in configuration file
2173 * allow nested conditionals in configuration file
2174 * allow whitespace before and after '=' in configuration file
2175 * don't leak file descriptors to child processes
2176 * make message transfer relieable
2177 * always report error on abnormal termination of connection
2178
21790.7:
2180 * support for alpha machines
2181 * stop TCP logging after exit message
2182 * limit connections in server (DoS attacks)
2183 * move string handling to slib
2184 * move file handling to slib
2185 * timestring without space
2186 * changed report format
2187 * SUID bugfix - use euid when checking logfile ownership
2188 * SUID bugfix - get root for lstat()
2189 * SUID bugfix - get root for opendir()
2190 * store number of hardlinks
2191 * send no message if polling empty queue
2192 * include tiger 64-bit implementation (portability)
2193 * codes for error conditions
2194 * mail check: handle multiple, overlapping audit trails
2195 * security fix: no append to database if SUID
2196 * fix sh_entropy.c (BUFSIZ -> BUF_ENT)
2197 * read command line before config file
2198 * PGP signing of config/database files
2199 * checksum of config file reported
2200 * checking for attributes only
2201
22020.6:
2203 * more syslogish priority specification
2204 * fixed segfault in sh_mem_check, apparently this was also
2205 the reason for the segfault in atexit()
2206 * allow for compilation with SRP authentication
2207 * fixed tiger checksum computation
2208 * fixed broken logfile verification for second and further audit trails
2209 * test program added
2210 * documentation improved
2211 * sh_forward_make_client: bug fixed in[8]->in[i]
2212 * sh_error.h: fixed missing #include <errno.h>
2213 * configure.in: fixed missing strerror() test
2214 * sh_utmp.c: check logins/logouts
2215 * check for missing files
2216 * only reset access time if necessary
2217 * O_EXCL in open()
2218 * limit environment to TZ in execve (sh_entropy.c, not used on Linux)
2219 * use trustfile() to determine whether logfile dir is trustworthy
2220 * strip head instead of tail for numerical address
2221 * store messages in fifo during log server outage
2222 * re-init session key after server outage
2223
22240.5 (21-12-1999):
2225 * added option for mail relay server
2226 * own popen() implementation in sh_entropy() (portability)
2227 * fixed error in sh_util_basename() (returned NULL for base == "/")
2228 * fixed segfault in strlcpy/strlcat (check for src == NULL)
2229 * FILENAME_MAX -> PATH_MAX (HP-UX 10.20)
2230 * use TIGER for 32-byte compilers (portability)
2231 * fixed hash function (do not include stdlib.h)
2232 * flush buffer before write in mailer code (IBM AIX 4.1)
2233 * make mailer code non-forking
2234 * cast argument of is...() to int (portability)
2235 * return() after _exit() for braindead compilers (portability)
2236 * optionally use inet_addr (portability)
2237 * check for broken mlock() (HP-UX 10.20)
2238 * minor code cleanups
2239 * fixed incorrect size of munlock()'ed memory in sh_error_string()
2240 * fixed a buffer overflow in the error printing routine
2241 * fixed a buffer overflow in sh_util_safe_name ()
2242 * implement SRP session key exchange
2243 * implement client/server facility
2244 * implement @host/@end construct in configuration file
2245 * preferably use uname(), and do gethostbyname() for FQDN
2246 * make vernam cipher base numeric
2247 * make OnlyStderr private in sh_error
2248 * test -e "/dev/random" --> test -r "/dev/random" (portability)
2249 * check for libsocket (portability)
2250 * add #defines for IPPORT_SMTP, IPPORT_TIMESERVER (portability)
2251 * eliminate superfluous /proc test
2252 * some unreachable code removed
2253 * cast to (byte*) replaced by cast to (word64*) in sh_tiger_hash()
2254 * check for setresuid() if no seteuid() (HP-UX 10.20)
2255
22560.4 (09-11-1999):
2257 * make sure output from /dev/random has no NULL's
2258 * one-time pad encryption for emailed keys
2259 (better than nothing ...)
2260
22610.3 (04-11-1999):
2262 * logfile readable for group
2263 * verify signatures for any file
2264 * signature block in tarball
2265 * use select() in time server routine
2266 * better protection for session keys (mlock)
2267
22680.2:
2269 * fixed incorrect man page
2270 * fixed incorrect example rc file
2271 * recursive error logging should work now
2272
22730.1:
2274 * initial release -- on Samhain 1999, of course
2275
2276development start:
2277 * probably 29-06-1999
2278
Note: See TracBrowser for help on using the repository browser.