source: trunk/docs/Changelog@ 219

Last change on this file since 219 was 219, checked in by katerina, 16 years ago

New options SetThrottle and SetConnectionTimeout (ticket #146).

File size: 84.1 KB
RevLine 
[211]12.5.3:
[219]2 * Option SetThrottle to throttle throughput for db download
3 * Option SetConnectionTimeout to configure the client connection
4 timeout configurable
[218]5 * Provide getrpcbynumber, getservbyname implementations
6 to avoid dependencies with static linkage
7 * Fix missing sh.host.(system|release|machine) on FreeBSD,
8 reported by D.Lowry
9 * New option SetMailPort to allow setting of SMTP port (patch
10 by lucas sizzo org)
[215]11 * allow POSIX regexes for filters
12 * consolidate filtering code from sh_extern.c, sh_(n)mail.c
[214]13 * rewrite mail subsystem to allow individual filtering
14 for recipients
[211]15 * allow shell expansion for values of config file options
[212]16 * allow list as value for option PortCheckInterface
[211]17 * fix bug in trustfile.c (with slapping on "/../" for symlinks)
[212]18 * lock baseline database upon writing
[211]19
[210]202.5.2b (29-01-2009):
21 * turn warnings into errors in the compile test suite
22 * fix missing define in sh_portcheck.c to eliminate compiler warning
23 (reported by joerg)
24
[209]252.5.2a (26-01-2009):
26 * fix problem building deb package (bit rot; reported by joerg)
27
[208]282.5.2 (22-01-2009):
[207]29 * samhain.c: report module failure with positive offset
30 * sh_database.c: parse numerical fields into ulong
31 * fix regression test script for postgresql
32 * fix regression test script for SELinux/ACL test
[206]33 * fix reporting of user for open ports to prelude
34 * report process pid for open ports
[205]35 * replace _exit() by raise(SIGKILL) b/o pthread problem
36 * new option LooseDirCheck ([false]/true), request by
37 Alexander
38 * improved help output of samhain_stealth (as suggested
39 by Michael Athanasiou)
[207]40 * new option ProcessCheckIsOpenVZ ([false]/true)
[205]41
[208]422.5.1 (07-12-2008):
[203]43 * workaround for freebsd7 amd64 lossage (compiler toolchain,
44 no mmap to 32bit address space)
45 * samhain-install.sh: check for presence of stealth_template.ps
46 before trying to create it
[202]47 * use -Wno-empty-body if supported to suppress warnings about
48 glibc pthread_cleanup_pop implementation
49 * fix text relocations for i386 in src/sh_tiger1.s
[200]50 * implement server->client SCAN command to initiate file check
51 * implement @if / @else conditionals with more tests in config file
[196]52 * new option SetDropCache to drop checksummed files from cache
[195]53 * report process/user for open ports on FreeBSD (code
54 lifted from FreeBSD sockstat.c)
[194]55 * fix for config reload issue with stealth mode (reported by
56 siim)
[192]57 * add -fstack-protector flags to LDFLAGS
58 * cygwin fix: don't use dnmalloc, doesn't work with pthreads
59 * cygwin fix: make trust check in samhain-install.sh return zero
60 * improved diagnostics for file read errors
61 * fixed script permissions (754 -> 755), reported by Christoph
[190]62 * constness patch by Joe MacDonald
[191]63 * GnuPG key ID patch by Jim Dutton
[192]64 * sh_kern.c: more error checking for reads from kernel
[190]65
662.5.0 (01-11-2008):
[188]67 * dnmalloc.c: fix inconsistent chunksize on 64bit systems
[185]68 * fix improved error reporting for failed fstat in checksumming
69 * report process/user for open ports (Linux only currently)
70 * fix deadlock on exit in sh_hash_init()
[184]71 * fix --enable-mounts-check for FreeBSD 7.0 (no MNT_NODEV anymore)
72 * log monitoring support
[183]73 * fixed constness in trustfile interface
[181]74 * remove libprelude 0.8 support (obsolete)
[180]75 * sh_forward.c: increase TIME_OUT_DEF to 900 secs
76 * dnmalloc.c: initialize rc in dnmalloc_fork_child(),
77 reported by B. Podlipnik
78
792.4.6a (09-10-2008):
[177]80 * fix compile problem on Fedora 9 (reported by pierpaolo),
81 'struct ucred' in sh_socket.c requires _GNU_SOURCE
82
832.4.6 (27-08-2008):
[176]84 * fix compile failure on win2k/cygwin (sh_unix_mlock prototype),
85 reported by jhamilton
[174]86 * fix potential deadlock with dnmalloc upon fork()
87 * fix non-portable use of 'hostname -f' in regression test suite
88 (reported by Borut Podlipnik)
89
902.4.5a (18-08-2008):
[173]91 * fix compile problem in dnmalloc.c (remove prototypes for
92 memset/memcpy), problem reported by Juergen Daubert
93
942.4.5 (07-08-2008):
[172]95 * testscripts: 'chmod -R' -> 'chmod -f -R', since Solaris 10
96 bails out on a chmod on a dangling link
97 * fix bug in check_samhain.pl nagios script (J.-S. Eon)
98 * use the UNO static checker
99 * compile as position independent executable (PIE)
[171]100 * handle EINPROGRESS error (Windows/cygwin issue)
101 * make sure every function uses less than one page of stack
102 (proactive security against gap jumping, Gael Delalleau)
103 * use dnmalloc instead of system malloc
[172]104 (proactive security against heap buffer overflows)
[171]105 * fix dnmalloc bugs and portability problems
106 * check for compressBound, since older zlibs don't have it
107
1082.4.4 (30-04-2008):
[170]109 * sh_database.c: fix maximum size of sql query string, maximum
110 size of strings in struct dbins_
111 * sh_hash.c: fix maximum size of message string
112 * fix typo in the base64 decoder
113 * fix 'make cutest' for parallel compiling
114 * fix compile warnings with -Wstrict-prototypes
115 * sh_static.c: override getgrgid, getpwuid for libacl
116 * fix more warnings about variables clobbered by 'longjmp'
117 or 'vfork' (due to library internal handling of mutexes)
118 * fix configure warning about unused datarootdir
[169]119 * configure.ac: warn, but accept nonexistent tmp dir
120 (Problem reported by Brian)
121 * sh_unix.c: undef P_ALL, P_PID, P_PGID before including
122 sys/wait.h (compile problem reported by Reputation)
123 * syslog function tested ok with Syslog Fuzzer v0.1
124 by Jaime Blasco (c) 2008
125 * slib.c: call fflush when writing trace to file
126 * sh_readconf.c: don't set OnlyStderr to false if gpg (problem
127 reported by Irene Reed)
128 * fix unconditional removal of pid file in atexit handler (bug
129 reported by Brian)
130 * fix invalid free() in sh_unix_checksum_size()
131 * sh_processcheck.c: workaround for stupid OpenBSD bug (returns
132 ENODEV instead of EAGAIN, because fgetc does
133 fcntl(0,F_SETFL,O_NONBLOCK) [ENODEV] internally), problem
134 reported by Roman R.
135 * fix buf that cause incomplete reporting of modified symlink if
136 symlink has changed and both old and new paths are >48 bytes
137 * fix bug that prevented mount check from running in one-shot mode
138 * enable mount check for openbsd
139 * fix processcheck default options and test script for openbsd
140 * option --list-file to list content of file (if saved)
141 * sh_tools.c: use strcasecmp in reverse lookup since DNS is case
142 insensitive (bug reported by Phil)
143 * fill content if MODI_TXT, zlib compress, base64 encode and add
144 as link_path in sh_unix.c; add to report in sh_hash.c
[164]145 * testsuite: add test for gpg fingerprint option
146 * sh_extern.c: add 'CloseCommand' for syntactic sugar,
147 add in testsuite
148
[169]1492.4.3a (12-02-2008):
150 * fix compile error caused by open() with O_CREAT and no third argument
[167]151 (reported by J.-S. Eon)
152
[169]1532.4.3 (31-01-2008):
[162]154 * sh_kern.c: don't require asm/segment.h for kernel check module
155 * use global var with pid of initial thread instead of getpid(),
156 since LinuxThreads returns different value in each thread (problem
157 reported by Steffen Mueller)
158 * sh_kern.c: no inode check for pci rom (creates spurious messages)
159 * slib.c: eliminate prototype for vsnprintf (compile problem reported
160 by eddy_cs)
[161]161 * Makefile.in: fix missing dependency on 'encode' for $(OBJECTS)
162 (reported by Matthias Ehrmann)
163
[162]1642.4.2 (17-01-2008):
[160]165 * fix broken option --with-checksum (reported by halosfan),
166 regression test added
167 * change HP-UX default optimization to +O2 since +O3 breaks
168 cutest unit testing framework
[156]169 * put result vector of rng in skey struct
[154]170 * fix more compiler warnings, and a potential (compiler-dependent)
171 NULL dereference in the unix entropy collector
[153]172 * fix some compiler warnings
173 * use -D_FORTIFY_SOURCE=1 -fstack-protector-all instead
174 of -fstack-protector
175 * always add PTHREAD_CFLAGS to LDFLAGS
[151]176 * sh_tiger0.c: checksum functions return length of file hashed,
177 needed to fix GrowingLogfile bug (researched by
178 siim at p6drad dash teel dot net)
[150]179 * sh_static.c: fix more 'label at end of compound statement'
180 (SH_MUTEX_UNLOCK closing brace; reported anonymously)
[149]181 * make sh_hash.c thread-safe
182 * remove plenty of tiny allocations
183 * improve sh_mem_dump
184 * modify port check to run as thread
[152]185 * new option PortCheckSkip to skip ports
[149]186 * fix unsetting of sh_thread_pause_flag (was too early)
187
[160]1882.4.1a (28-11-2007):
[149]189 * fix overwrite of ErrFlags (functionality bug)
190
[160]1912.4.1 (26-11-2007):
[147]192 * security fix: regression in the seeding routine for the PRNG
193 (detected by C. Mueller)
194 * regression test added for PRNG seeding routine
[146]195 * fix problem with PCI ROM check (spurious messages about modified
196 timestamps, reported by S. Clormann)
197
[160]1982.4.0a (08-11-2007):
[145]199 * fix compile failure with --enable-static (reported by S. Clormann)
200 * fix potential deadlock if SIGHUP is received while suspended
201
[160]2022.4.0 (01-11-2007):
[131]203 * eliminate alarm() for I/O timeout (replaced by select)
204 * use getgrgid_r, getpwnam_r, getpwuid_r, gmtime_r, localtime_r,
205 rand_r, strtok_r if available
[134]206 * protect readdir(), getpwent(), gethostname() with mutexes
207 (readdir_r considered harmful)
[138]208 * make checksum/hash, entropy, rng functions reentrant
[134]209 * use thread-specific conversion buffer for globber()
[138]210 * fixed compile problems and problems with test suite
[144]211 * modify login watch to run as thread
212 * modify process check to run as thread
[131]213
[144]2142.3.8 (03-10-2007):
[127]215 * new option PortCheckIgnore = interface:portlist
216
[128]2172.3.7 (13-09-2007):
[125]218 * Makefile.in: fix 'make deb' target, wrong name of config file
219 written to debian/conffiles (reported by marc)
[124]220 * configure.ac: fix incorrect order of with-prelude, enable-static
221 (libprelude test was always without -static)
222
2232.3.6 (06-09-2007):
[123]224 * added yuleadmin.pl script contributed by Riccardo Murri
225 * fix compile error with -f-stack-protector on some systems (reported
226 by marc); we now check for libssp
[118]227 * fix local DoS attack on BSD systems lacking getpeereid() (reported
228 by Rob Holland).
[117]229 * fix yulectl password reading from $HOME/.yulectl_cred, erroneously
230 rejected passwords with exactly 14 chars (reported by Jerry Brown)
231 * introduce 'fflags' flag for suid files to detect new files already
232 found in regular file check (problem reported by J. Crutchfield);
233 also add regression test to ascertain that files in baseline
234 database are not quarantined erroneously
[114]235 * sh_hash.c: replace check for prefix 'K' with check for not prefix'/'
236 to allow for arbitrary module-specific store/lookup in db
237 * replace 'visited', 'reported', 'allignore' with generic 'fflags' field
[113]238 * sh_cat.c: reduce priority of MSG_TCP_RESET to avoid spamming if
239 port checking is used on same host as server (reported by kadafax)
240 * Install.sh: don't use --separate-output with non-checklist
241 widgets (problem discovered by D. Denton)
[111]242 * sh_gpg.c, sh_userfiles.c: use sh_getpwnam et al. wrappers
243
[124]2442.3.5 (20-06-2007):
[110]245 * sh_portcheck.c: try to tear down connections more gracefully
246 (request by S. Petersen)
[107]247 * fix incorrect handling of files with zero size in GrowingLogFiles
248 (problem reported by S. Petersen)
[105]249 * fix incorrect encoding of null checksums in stealth mode
250 * sh_hash.c: fix repeated printing of acl/attributes in database dump
251 * sh_unix.c: fix option useaclcheck ignored if both useaclcheck and
252 useselinuxcheck are supported
253
[110]2542.3.4 (01-05-2007):
[103]255 * sh_processcheck.c: fix missing init of sh_prochk_res array before
256 check (leads to degrading functionality over time and 'fake pid'
257 warnings; reported by D. Ossenbrueggen and
258 soren dot petersen at musiker dot nu)
259 * sh_processcheck.c: fix memory leak
[102]260 * sh_kern.c: for 2.6.21+ don't check proc_root_lookup (not possible
261 anymore? proc_root_inode.lookup != proc_root_lookup)
262 * sh_extern.c: flush streams before forking (problem if [Prelink]
263 used together with prelude logging, reported by M. deJong)
264 * fixed compilation of kern_head (regression cause by cross-compiling
265 fix; problem reported by S. Clormann)
[101]266 * more typos fixed (reported by John Horne)
267
2682.3.3 (27-03-2007):
[100]269 * fixed typos in configure.ac and manual (reported by John Horne)
270 * don't use mysql_options on x86_64, since libmysql is broken
[99]271 * fixed cross-compiling (patch by Joe MacDonald)
[94]272 * refactor sh_kern.c, sh_suidchk.c
273 * fix bug with leading slashes in linked path of symlinks within
[93]274 the root directory
275 * sh_kern.c: check PCI ROM (Linux), refactor code
[92]276 * move file descriptor closing more towards program startup
[93]277 * kernel check: support OpenBSD 4.0 (wishlist)
[92]278 * fix samhain_hide module (in-)compatibility with recent kernels
[93]279 (reported by Jonny Halfmoon)
280
[100]2812.3.2 (29-01-2007):
[89]282 * fix regression in full stealth mode (incorrect comparison of
283 bytes read vs. maximum capacity), reported by B. Fleming
284
2852.3.1a (21-01-2007):
[87]286 * fix incorrect use of sh_gpg_fill_startup if option --with-fp is used
287 (reported by zeroXten)
288
2892.3.1 (21-01-2007):
[100]290 * fix bug that may cause accidental closure of yule TCP socket
[85]291 (problem reported by B. Masuda)
[83]292 * fix sh_kern.c for kernel 2.6.19 (reported by S. Clormann)
[79]293 * don't use sstrip in 'make deb', since dh_shlibdeps uses objdump
294 (reported by B. Masuda)
295 * rm report.pl from rules.deb.in (reported by B. Masuda)
296 * samhainctl(): longer timeout (bad status reporting at startup,
297 reported by Phil and by Dan Track)
[78]298 * sh_portcheck.c: make connect errors more descriptive
299 * sh_portcheck.c: fix ignored setting of PortCheckActive
300 * sh_processcheck.c: add statvfs, and wrap for EINTR
301 * sh_portcheck.c: add wrappers for EINTR
302 * report user and executable for hidden processes
303 * fix update failure if reportonlyonce = false (reported
304 by D. Strine)
[76]305 * fix compile error in sh_portcheck.c (problem on cygwin
306 reported by J. D. Fiori)
307 * check filenames ending in space (also for utf8 spaces)
308 * check and escape csv formatted db listing
309 * cache results of sl_trustfile_euid()
310 * trustfile: use 4096 for MAXFILENAME, switch to strncpy
311 * CL option -v|--version for info on version and compiled-in options
312
[78]3132.3.0a (01-11-2006):
[75]314 * fix compile failure with portcheck + stealth (reported by lucas)
315
3162.3.0 (01-11-2006):
[68]317 * fix concurrency for inserts in oracle db
318 * add acl_(new|old) to database schema
319 * check for selix attributes and/or posix acl
320 * new option UseSelinuxCheck (bool)
321 * new option UseAclCheck (bool)
322 * regression tests for above
323 * add module to check for open ports
324 * add module to check processes (hidden/fake/missing)
325 * use const char* for argument of module configuration callbacks
326
[73]3272.2.6 (31-10-2006):
328 * fix missing support for MacOX X init script (reported
329 by Daniel Kowalewski)
[65]330 * fix error about non-readable file with no checksum required
331 * fix server warning about 'no server name known'
332 * fix 'make deb' makefile target
333 * fix default export severity for server
[68]334
[65]3352.2.5 (05-10-2006):
[63]336 * fix broken Install.sh, reported by Alexander Kraemer
[61]337 * workaround for glob(3) sillyness on MacOS X (reported by David)
338 * fix for broken resorce fork check (reported by David)
339 * fix for broken compilation on cygwin (reported by Elias)
340
3412.2.4 (03-09-2006):
[60]342 * add regression test for the GrowingLogFiles issue to test suite
[59]343 * fixed sh_unix.c: bug in database init if GrowingLogFiles used
344 with signed database (reported by Timothy Stotts)
345 * bug in manual fixed (incorrect documentation of --enable-user,
346 noticed by M. Brown)
347 * rc.subr compatible init script for FreeBSD/NetBSD
[58]348 * improve routine to find rpm after build
[57]349 * add netbsd rc file from Brian Seklecki (taken from pkgsrc-wip)
350 * fix error in manual (location of lock file)
[55]351 * fix bug with SuidExclude (files in directory were still checked)
352
[59]3532.2.3 (31-07-2006):
[53]354 * fix samhainadmin.pl: check for gpg-agent running if use-agent is set
355 (ticket #28 by anonymous)
[52]356 * fix stealth mode (regression in parser), problem reported by
357 Joschi Kuphal
[54]358 * fix minor typo in sh_database.c (compile problem reported by
359 Joschi Kuphal)
[52]360
[51]3612.2.2 (17-07-2006)
362 * minor fixes for regression test scripts
363 * minor updates to the manual (suggested by Brian A. Seklecki)
364 * fix sh_kern.c, kern_head.c: kernel rootkit detection for 2.6.17+
365 (problem reported by Leonhard Maylein)
366 * fix samhain_hide.c for 2.6.17+: use module_param() if MODULE_PARM
367 is not defined
368
3692.2.1c (11-07-2006)
[49]370 * fix sh_extern.c: sh_ext_add_default() cast to (void) was too early
371 (Solaris 8 build failure reported by Jesse)
372 * fix sh_unix.c: wrong prototype for sh_unix_mlock()
373 if HAVE_BROKEN_MLOCK (AIX 5.2 build failure reported by
374 Jonathan Kaufman)
375
[48]3762.2.1b (20-06-2006):
377 * fix compile error on SuSE 10.1 (reported by Leonhard Maylein)
378
3792.2.1a (15-06-2006):
[47]380 * fix compile error on i686/MacOS X (reported by Andreas Neth)
381
[48]3822.2.1 (13-06-2006):
[46]383 * fix gcc 4 warnings and build failure on x86_64 (debian bug #370808)
384 * fix compiling with Oracle (noticed by Colapinto Giovanni)
385 * fix configure.ac for most recent autoconf version
386 (debian bug #369503)
[42]387 * fix a regression that would make impossible local updates w/clients
388 * fix a few missing '\n' in sh_getopt.c
[41]389 * sh_kern.c: fall back on mmap() if read() fails on /dev/kmem
[40]390 * fix Solaris package creation
391 * recognize Solaris doors and event ports
392 * fix the idmef_inode_t patch: provide required info to avoid stat()
393 * fix bug on database update: fill in dev and rdev fields
394 * fix get_file_infos() in sh_prelude.c: avoid premature return
395 * GCC_STACK_PROTECT_CC: AC_TRY_COMPILE -> AC_TRY_LINK
[38]396 * deploy.sh: allow to set a group for hosts upon installation
[36]397 * patch by Yoann: fix an issue when setting the idmef_inode_t object
398 * fix memory leaks in error paths in sh_prelude.c
399 * fix concurrent inserts with postgres in sh_database.c
400 * code cleanup
[47]401 * fix manual version in spec file, first noticed by Imre Gergely
[34]402
[48]4032.2.0 (01-05-2006):
[30]404 * patch by Jim Simmons for samhainadmin.pl.in
405 * fix testsuite portability problems
406 * fix md5 endianess problem detected on HP-UX 11i / PA-RISC 8700
407 * fix potential NULL dereference in sh_utmp_endutent()
[29]408 * patch by Neil Gorsuch for suidchk.c (do not scan lustre, afs, mmfs)
409 * fix sh_ext_popen (OpenBSD needs non-null argv[0] in execve)
410 * fix make_tests.sh portability (echo '"\n"' does not work on OpenBSD)
411 * fix bug in sh_utils_obscurename (check isascii)
412 * scan h_aliases for FQDN if h_name is not
[27]413 * add copyright/license info to test scripts
414 * add copyright/license info to deployment system scripts
415 * support server-to-server relay
[29]416 * new CL option --server-port
[27]417 * minor improvements in manual
[25]418 * patch by Yoann Vandoorselaere for sh_prelude.c
[22]419 * allow --longopt arg as well as --longopt=arg
[29]420 * verify checksum of growing log files (up to previous size)
[22]421 * rewrite of the test suite
[18]422 * added a bit of unit testing
423 * minor optimizations in various places
424 * optimized implementation of tiger checksum algorithm
425 * read in 64k blocks (faster than 4k)
426 * sh_unix.c, sh_hash.c: support file flags on *BSD, update Linux
427 file attribute code
428 * kern_head: fix compilation of kernel check module on OpenBSD
429 * updated samhainrc.linux, samhainrc.freebsd
430 * sh_unix.c: fix setrlimit (RLIMIT_NOFILE, ..)
431 * sh_files.c: fix missing use of flag_err_info
432 * sh_tiger0.c: remove repetitive use of mlock
433 * slib.c: remove fcntl's from sl_read_timeout (caller sets O_NONBLOCK),
434 add function sl_read_timeout_prep
[3]435
[25]4362.1.3 (13-03-2006):
437 * fix compile problem in slib.c (reported by Lawrence Bowie)
438 * fix bug with combination of one-shot update mode and file check
439 schedule (reportedby Dan Track)
440 * improved the windows howto according to suggestions by
441 Jorge Morgado
442 * fix samhain_hide kernel module for new linux kernel versions
443 * fix minor problem with dead client detection (problem reported
444 by Michal Kustosik)
445
[18]4462.1.2 (10-01-2006):
447 * fix startup error with combination of gpg+prelude
448
[5]4492.1.1a (22-12-2005):
450 * fixed a stupid bug in sh_files.c (break if file = dir)
451
4522.1.1 (21-12-2005):
[3]453 * sh_calls.c: protect sh_calls_set_bind_addr against overriding
454 * comINSTALL, updateDB: use locking
455 * samhainadmin.pl: use locking
[1]456 * fix typos in samhainrc.solaris (noticed by Robby Cauwerts)
457 * improve zAVLSearch (remove redundant strcmp)
[3]458 * use AVL tree in sh_files.c instead of linked list (better scaling)
[1]459 * fix bug with suidcheck (no update/check in one-shot mode with
460 schedule instead of check interval; noticed by R. Rati)
461 * fix for problem with '-t update -i' if daemon mode (problem report
462 by Peter van der Does)
463 * fix for bug in sh_util_ask_update (two returns were required ...)
464
4652.1.0 (31-10-2005):
466 * minor fix for cross-compiling with --with-kcheck
467 * sh_forward.c: handle bad fds in the select() fd sets
468 (reported by hmy)
469 * sh_extern.c: fix debugging code
470 * slib.c, sh_calls.c, sh_calls.h: improve handling of O_NOATIME
471 (reported by Gabor Kiss)
472 * makefile.in: fix for solaris package creation
473 * sh_mail.c, sh_readconf.c: mail filtering options
474 * sh_database.c: Oracle reconnect on connection failure
475 (bug report by Alexander A. Sobyanin)
476 * sh_unix.c: don't purge MYSQL_UNIX_PORT environment variable
477 (problem reported by Peter)
478 * sh_calls.c: fix for a HP-UX accept() problem caused by the gcc4 fix
479 * fixes for gcc 4.0.2 compiler warnings
480 * ability to use daemon mode together with update
481 (wishlist Yoan Vandoorselaere)
482 * fixes for debugging
483
4842.0.10a (22-08-2005):
485 * fix for overlapping directory check specification (reported by Bub)
486
4872.0.10 (21-08-2005):
488 * fix for segfault (free() on a constant string) with libprelude
489 (problem reported by Grae Noble)
490 * upgrade FreeBSD kernel check to 5.4, minor fixes
491 * useful script for users of Linux kernel check
492 (contributed by marc heisterkamp)
493 * documentation improvements (suggested by Brian Seklecki and Robby)
494
4952.0.9 (25-08-2005):
496 * samhain_erase.c: add #define for NULL
497 * sh_suidchk.c: fix incorrect use of escaped filename
498 * sh_prelude.[ch], sh_readconf.c: configurable mapping from
499 samhain severity to prelude severity
500 * sh_unix.h: second arg of gettimeofday should be NULL
501 * sh_files.c: fix checking of directory special file (use specified
502 policy, not that of parent dir, problem found by Brian A. Seklecki)
503 * sh_entropy.c: longer timeout for entropy collector
504 * sh_socket.c, sh_forward.c: allow probing of clients for
505 necessity of configuration reload
506 * yulectl: minor fixes, option -v (verbose), new command PROBE
507 * fix 'File not found' messages for files flagged with IgnoreMissing
508 * sh_database.c: strip newline from oracle error messages
509 * sh_files.c: fix rsrc fork issue with MacOS X Tiger
510 (reported by A. Koren)
511 * never compute checksum if not checked (problem report by D.Hughes)
512 * sh_prelude.c: cleanup and bugfix by Yoann
513 * sh_hash.c: for prelude, make sure mode is supplied with user/group
514 and vice versa
515 * sh_prelude.c: provide proper FileAccess objects (bug
516 report by Mihai Ilinca)
517
5182.0.8 (03-07-2005):
519 * configure.ac: use $LIBPRELUDE_PTHREAD_CFLAGS rather than
520 $LIBPRELUDE_CFLAGS (bugfix by Yoann)
521 * samhain.spec.in: remove support for chkconfig (it's too buggy).
522 Strangely, if invoked as install_initd it behaves sanely ...
523 * src/sh_err_log.c: fix key input (this time for real)
524 * fix --with-altlogserver (bug from 2.0.7b)
525 * remove server socket in start/stop script
526
5272.0.7e (not released):
528 * Makefile.in: introduce a total of 6 sec delay for 'make' utilities
529 that use 1 sec resolution, and consider target out-of-date if
530 timestamp(target) = timestamp(dependency) ...
531 * src/sh_err_log.c: fix key input
532 * another fix for yulectl (use pwent->pw_dir)
533 * dsys/comINSTALL, dsys/comUNINSTALL, dsys/comBUILD: fix PATH
534
5352.0.7d (not released):
536 * one more fix for the spec file (stupid rpm finds tags in comments!!!)
537
5382.0.7c (not released):
539 * test/testrun_1b.sh, test/testrun_2b.sh: use $GPG_PATH
540 * dsys/comINSTALL, dsys/funcDB, dsys/funcINSTALL: some bugfixes
541 * samhain-install.sh.in: fix test -z $verbose
542 * sh_hash.c: speedup database reading
543 * Makefile.in: fix the problem that BSD make would make too much
544 * deploy: yulerc.clients -> yulerc.install.db, provide
545 $defdatabase for backward compatibility
546 * deploy: allow for comma in client_install_date
547
5482.0.7b (not released):
549 * hp_ux.psf.in: fix psf file
550 * dsys/comINSTALL: fix $yule_date -> $yule_data
551 * Makefile.in: fix 'make depot'
552 * sh_tools.c, sh_unix.c: fix detection of open file limit
553 * sh_readconf.c: reset read_mode after reading conf file
554 * yulectl.c: better error messages, use homedir from getpwuid(geteuid)
555 * init/samhain.startLSB.in: fix misleading message in lsb init script
556 * sh_forward.c: better display for nonce u in debug mode
557 * sh_tiger*.c: fix checksum for HP-UX 64bit
558 * samhain.c: don't fetch database twice
559 * configure.ac: accept nodename for --with-logserver=...
560 * samhain_setpwd.c: return proper exit status for samhain_setpwd
561 * respond to SIGTERM on initializing
562 * fix problems with samhainadmin.pl
563 * sh_utils.c: fix bug with AddOKChars (found by Karol)
564
5652.0.7a (not released):
566 * remove 'df' from entropy gatherer (NFS may hang)
567 * modify va_copy check (doesn't work with HP-UX PA64 compiler)
568 * fix compile warnings in sh_database.c
569 * samhain-install.sh.in: check for /usr/bin/false in /etc/shells
570 * fix install-boot on HP-UX
571 * aclocal.m4: fix configure CL parsing to recognize VAR=VALUE
572
5732.0.7 (11-06-2005):
574 * yet another fix for the spec file (use internal dependency generator)
575 * sh_error.c, sh_prelude.c: init libprelude after open fds are closed
576 * error message if queue is full
577 * fix two compiler warnings on HP-UX
578 * fix sh_mail.c for Interix (no resolver routines)
579 * fix sh_unix_initgroups2() if no initgroups() function (bug reported
580 by Geries Handal)
581 * remove references to 'struct timezone' (Interix; problem
582 reported by Geries Handal)
583 * init/stop for prelude on SIGHUP
584 * sh_cat.h: fix a stupid bug with messages classes
585 * manual: new section on nagios (with help from kiarna),
586 more on prelude
587 * sh_prelude.c: cleanup and improvements (Yoann Vandorselaere)
588 * default prelude profile name now is 'samhain' (lowercase)
589 * sh_readconf.c: new option PreludeProfile (by Yoann Vandorselaere)
590 * remove obsolete check for linux/module.h, linux/unistd.h
591 * remove dependency on virtual/glibc in gentoo ebuild
592 (problem reported by Willis Sarka)
593
5942.0.6 (01-03-2005):
595 * sh_prelude.c, configure.ac, aclocal.m4: support for
596 libprelude 0.9 (Yoann Vandoorselaere)
597 * sh_html.c: fix bug with entry.html template (reported by
598 Stephane Sanchez)
599 * Install.sh: fix mandir option (reported by Rodney Smith)
600 * Fixed Linux/64bit bug in definition of EUIDSLOT
601 * New targets 'make depot', 'make depot-light' (HP-UX, untested)
602 * Use sstrip for RPMs and DEBs (automatic stripping disabled)
603 * Fix aclocal.m4 for autoconf 2.59 (missing $ac_cr_alnum et al.,
604 problem noticed by Yoann Vandoorselaere)
605 * Modify samhain.spec.in to disable automatic stripping upon install
606 * Fix deploy.sh + '--enable-gpg', and fix 'make rpm' and 'make deb'
607 for '--with-khide' (problems reported by Mark)
608 * Fix compile error in sh_tools.c on HP-UX 10.20
609 (problem reported by Dennis Boylan)
610 * Runtime configuration of server listening port (wishlist)
611 * Runtime configuration of server listening interface (wishlist)
612 * Ignore SIGTTIN (consistency)
613 * Use SIGTTOU to force file check (wishlist)
614
6152.0.5b (01-04-2005):
616 * Fix build problem b/o timestamp on stamp file
617
6182.0.5a (16-03-2005):
619 * Fix problem with 'make rpm' (reported by Dirk Brümmer)
620
6212.0.5 (02-03-2005):
622 * Fix bug with partial reads from clients in server
623 (bug report by Brian)
624 * Support gpg checksum bootstrap with yule
625 * Support mount option check on HP-UX
626 * For MAIL FROM, use 'example.com' as domain part if
627 hostname is numeric (problem reported by Eric Raymond)
628 * The HOWTO-write-modules has been updated.
629 * Convenience functions to insert data in database have been
630 added.
631 * Use int0x03 only on i386 in sh_derr() (portability problem
632 reported by John Mandeville)
633
6342.0.4 (09-02-2005):
635 * Fixed broken 'make deb' (problem report by olfi)
636 * Fixed minor bug in test scripts (detection of gmake vs. make)
637 * Fixed Tru64/OSF compile warnings (reported by B. Terp)
638 * Normalize list parsing to allow comma, space, and tab as separators
639 * Some more descriptive error messages in kern_head.c
640 * Absolute path to utilities in init/samhain.startLinux.in
641 * Fixed is_root variable in deploy.sh
642 * Fixed 'deploy.sh info'
643 * Fixed 'deploy.sh install' client startup
644 * Fixed 'make tbz': don't remove ebuild scripts in 'make dist'
645 (issue reported by W. Sarky)
646
6472.0.3 (14-12-2004):
648 * Fix CPPFLAGS with mysql/postgresql (repoted by P. Smith)
649 * Fix missing sys/time.h include in slib.c (reported by Jonas)
650 * Workaround for file closing problem with Prelude+GPG
651 * Fixed memory leak with Prelude.
652 * Fixed bug in samhain_stealth (PGP signature not correctly
653 retrieved from hidden configuration; report and patch by V. Tuska)
654 * Added Perl script to concatenate file signature database files
655 * Fix compile error with combination of --enable-nocl and
656 --enable-stealth (reported by Zdenek Polach)
657 * Fix bug in dsys/initscript with --enable-nocl
658 * Fix declaration of sh_kern_timer()
659 * Fix missing Mounts+Userfiles options in appendix of manual
660 * Updated the README (bug report by H. Franzke)
661 * Fix some compiler warnings
662
6632.0.2a (09-11-2004):
664 * Fixed OoM condition when client rc file not found (reported by Eilko)
665
6662.0.2 (08-11-2004):
667 * Fixed buffer overflow in sh_hash_compdata() (only in 'update' code)
668 * Fixed uninitialized variable in sh_mail_msg() (problem reported
669 by Michael Milvich)
670 * Fixed potential NULL pointer dereference in sh_hash_compdata()
671
6722.0.1 (01-11-2004):
673 * Fixed compilation bug reported by jue (--with-kcheck broken).
674 * Fixed start option (bug reported by sanek). Behaviour wrt.
675 environment variables depended on the way the daemon was started.
676
6772.0.0 (31-10-2004):
678 * The deployment system has been rewritten from scratch in
679 a cleaner and more modular and extensible way. Deployment
680 of native packages is supported now.
681 * The build system has been revised. Building outside the source
682 directory is supported now.
683 * Support for checksumming of prelinked executables / libraries
684 has been added.
685 * The configure script now checks for the SSP/ProPolice patch in GCC,
686 and enables it if present.
687 * The install-boot option in samhain-install.sh has been fixed
688 (use absolute paths for sbin utilities).
689 * A nagios plugin (scripts/check_samhain.pl) has been added.
690 * The LSB (Linux Standard Base) init script has been fixed (the output
691 was incorrect).
692 * Fetching of built binary packages has been
693 fixed ($(PACKAGE)->@install_name@).
694 * For files in proc, the timeout has been reduced, and no error
695 messages are issued upon timeout.
696 * A function has been added to print out full details for missing
697 files if encountered while in sh_files().
698 * The reporting for SuidCheck has been fixed (incorrect policy
699 noticed by JiM).
700 * On Linux, SuidCheck does not report on files marked as candidates
701 for mandatory locking (group-id bit set, group-execute bit cleared).
702 * Fix for oracle init script (by Matt Warner)
703
7041.8.12b (11-10-2004):
705 * fix bug in MSG_MSTAMP (%ld -> %lu)
706 * fix bugs in sh_suidchk.c (%ld -> %lu), check fopen for NULL,
707 mkdir mode for quarantine directory
708 * fix the fix for modlist_lock search in System.map
709
7101.8.12a (01-10-2004):
711 * fix bug in samhain-install.sh.in (only occurs on Solaris), reported
712 by J. Roland
713
7141.8.12 (27-09-2004):
715 * fix compile bug with --enable-static + --with-database=postgresql
716 * fix search for modlist_lock in System.map
717 * password auth for yule command socket (request by D. Kocic)
718 * more info about pending/sent commands to clients
719
7201.8.11 (30-08-2004):
721 * fix static linking on Linux by use of replacement routines from
722 uClib - however, this means, there is no NIS support anymore
723 * new option AddOKChars=... to modify the set of characters for
724 filenames considered 'obscure'
725 * new option HardlinkOffset=... to specify an offset from the canonical
726 hardlink count for a directory
727 * fix some warning with HP 11.23 native compiler
728 * fix minor OpenBSD portability problems (EIDRM, compiler warning)
729 * samhainrc.5, samhain.8: updated the man pages
730 * sh_unix.c, sh_files.c: ignore 'no user/group' and 'obscure name'
731 for AllIgnore
732 * sh_kern.c: fix 'update' to display modifications
733 * sh_kern.c: fix bug with IDT check (spurious alerts b/o uninitialized
734 fields)
735 * stealth kernel modules: fix for linux 2.6, fix
736 redefine of KERNEL_VERSION
737 * warn about stealth kernel module problem with 2.6 in manual
738 * sh_unix.c: remove some cruft
739 * fix a typo in the manual (noticed by J. Rubin)
740 * configure.ac: re-order output from libprelude-config (required
741 for static linking - problem reported by E. Neber)
742 * kern_head.h, kern_head.c: fixes for Linux 2.6 kernel
743
7441.8.10b (13-07-2004):
745 * fix incorrect usage of 'retry_msleep()' in sh_kern.c (reported
746 by Pat Smith)
747
7481.8.10a (13-07-2004):
749 * depend-gen.c: fix for FreeBSD 'make' which does not understand
750 the dependencies ... (problem reported by David Thiel)
751
7521.8.10 (13-07-2004):
753 * sh_unix.c/sh_unix.h: fix defaults for 'GrowingLogFiles' policy
754 (bug report by VZoubkov)
755 * fix some warnings (unreachable statement) with HP-UX native compiler
756 * kern_check.c: silence warning about 'sendfile' for 4.10
757 (noticed by Ryan Beasley)
758 * modify depend-gen.c to ignore sh_gpg_chksum.h
759 * add a non-plaintext version of GPG_HASH (sh_gpg_chksum.h)
760 * .. and for fingerprint
761 * sh_suidchk.c: fix some compiler warnings on solaris
762 * allow commas to separate multiple entries in a RedefXXX= directive
763 * replace sleep/usleep with nanosleep wrapper function
764 * replace alarm() for read timeout with select() in sl_read_timeout
765 (should fix bug reported by Scott Kelley)
766 * increase lstat/open timeout to 6 sec
767
7681.8.9 (16-06-2004):
769 * made 'no action specified' error message more informative
770 (suggested by Stephen Gill)
771 * fix memory leak in mysql sh_database_query() (bug report by Dejan)
772 * remove some cruft from the code
773 * sh_files.c: check MacOS X resource forks (idea from Osiris)
774 * sh_files.c: no hardlink check for MacOS X
775 * sh_util_ask_update: fix bug with no terminal in non-interactive mode
776 (report and debug data by Kris Dom)
777 * manual refactored
778 * fix redundant messages when updating with suidcheck
779 * allow interactive update for suid files
780 * don't remove the TZ environment variable to guard against
781 misconfigured hosts
782 * also use gethostname if uname returns possibly truncated name
783 * fix improper file descriptor handling in sh_mail.c (bug report
784 by Alex Weiss)
785 * cleanup MBLK cruft
786 * use SH_ALLOC/SH_FREE in sh_prelude.c
787 * update sstrip to Version 2.0
788
7891.8.8 (25-05-2004):
790 * fix compilation problem on AIX 5.2 (nameser_compat.h; report by
791 Tim Evans and Ian McCulloch)
792 * don't check for trusted paths on Cygwin
793 * add Windows HOWTO written by Kris Dom
794 * kern_check.h: extend FreeBSD syscall table for 5.x
795
7961.8.7a (03-05-2004):
797 * sh_mail.c: fix subject length
798 * sh_mail.c: fix the sh.mailNum.alarm_last fix (report by Kris Dom)
799 * sh_utils.c: sh_util_ask_update(): fix ISO C conformance bug
800 (compile problem reported by Kris Dom)
801
8021.8.7 (01-05-2004):
803 * sh_mail.c: fix incorrect count of sh.mailNum.alarm_last, causing
804 empty mails (introduced with segfault fix in 1.8.6, report
805 by Kris Dom)
806 * sh_utils.c: sh_util_ask_update(): check whether stdin is a terminal,
807 try to reopen on controlling terminal if not
808 * sh_utmp.c: fix order of options (problem report by Uri)
809 * sh_files.c: sh_files_chk(): set tmp = NULL at end of loop
810 (may cause segfault on null dereference for missing files)
811 * sh_unix.c: patch by Marc Schütz (order of sh_unix_getinfo_type,
812 sh_unix_getinfo_attr)
813 * don't use dh_installmanpages in 'make deb' (samhain/yule conflict
814 reported by xavier)
815 * on HP-UX, define _XOPEN_SOURCE_EXTENDED in sh_mail.c and sh_tools.c
816 (suggested by Kris)
817 * include nameser_compat.h in sh_mail.c (for MacOS X,
818 suggestion by jna)
819 * sh_utmp.c: fix time for logout events (reported by Erich
820 van der Velde)
821
8221.8.6 (15-04-2004):
823 * add CL option to set threshold for prelude and RDBMS
824 * sh_mail.c: fix bug with MailSubject option (segfault on NULL pointer
825 dereference; reported by Micha Silver)
826 * fix compiling with --disable-encrypt (reported by Pat Smith)
827 * fix minor problem in scheduler (don't return before all schedules
828 are tested, to set last_exec correctly)
829
8301.8.5 (05-04-2004):
831 * fix bugs in sh_utmp.c (unlinking of list head); may fix an OpenBSD
832 problem (endless loop; report and debugging aid by Joe MacDonald)
833 * fix hardlink check (null dereference in error message, segfaults
834 on solaris - noticed by Bob Bloom)
835 * sh_suidcheck: don't truncate quarantined file if nlink > 1
836 * fix Install.sh (no --seperate-output with --radiolist); patch by
837 Greg Kimberly
838
8391.8.4 (17-03-2004):
840 * add Prelude patch by Patrice Bourgin
841 * add license statement to sh_mounts.c, sh_userfiles.c after
842 receiving a clarifying e-mail from Cian Synnott
843 * support UsePersistent = no for Oracle (problem spotted and fix
844 tested by Michael Somers)
845 * fix bug in samhainadmin.pl
846 * sh_gpg.c: describe type of gpg error (if any)
847 * fix persistent connections with postgresql (reported by
848 Erwin Van de Velde)
849 * prelude: local 'meaning' shadows global in sh_prelude_alert
850 (spotted by David Maciejak)
851 * uname: workaround for cases where nodename would be a possibly
852 truncated FQDN (problem reported by Cian Synnott)
853 * re-write parts of sh_kern.c, store kernel info in baseline database
854 -> no need to recompile after kernel upgrade
855 * modify timeouts in sh_unix_getinfo, add timeout warning
856 * change handling of dangling symlinks (store in db)
857 * fix typo with MSG_FI_OBSC2 (double slash)
858 * remove redundant operation in sh_utils_safe_name
859 * fix occasional random start bytes of long messages in
860 sh_error_string (sl_strlcat -> sl_strlcpy)
861 * provide details for missing files (as for added files)
862 * remove duplicate message for no such group/user
863 * add fixes for samhain.oracle.init (supplied by Michael Somers)
864 * fix date insertion for Oracle (fix by Michael Somers)
865 * manual: fix incorrect statement about RPM (noticed by
866 Lars Kellogg-Stedman)
867
8681.8.3 (02-02-2004):
869 * add a HOWTO-client+server-troubleshooting document
870 * fix another bug with SIGUSR2 (suspend mode)
871 * new option SetBindAddress (--bind-address=...) to force
872 interface for outgoing connections on multi-interface box
873 * don't link against libgmp if not required (i.e. standalone)
874 * test for ext2fs/ext2_fs.h or linux/ext2_fs.h
875 * new make targets 'emerge' and 'tbz2' for gentoo
876 * update rules.deb.in based on the Debian package
877 by Javier Fernandez-Sanguino
878 * updated config.guess, config.sub to version 2002-09-05
879 * external command: report failure only once
880 * console: reset failure status after success
881 * README.UPGRADE: explain 1.7.x <-> 1.8.x client/server compatibility
882 * use persistent connection to database by default
883 * option UsePersistent=no to switch off persistent connection
884
8851.8.2 (19-01-2004):
886 * sh_userfiles.c: new option UserfilesCheckUids (requested)
887 * sh_error.c: server: don't log to logfile before dropping root
888 * new script scripts/samhainadmin.pl (administrative tasks for
889 signed config/database files)
890 * add changes code to log_msg for reports on modified files
891 * change default log threshold to 'mark', as 'none' tends
892 to confuse new users
893 * faster response time for SIGUSR2
894 * revised (mostly backward-compatible) message classes
895 * fix missing check of mailTime in server select loop
896 * add support for libprelude (version 0.8.10)
897 * fix format for MSG_E_GRNULL (reported by Stefan Hudson)
898 * fix Bourne shell incompatibility (export) in samhain-install.sh
899 (first reported by David Thiel)
900 * fix typo in spec file (first reported by Christian Vanguers)
901 * remove some cruft (signal handler, memory handling)
902 * return from sigterm handler, rather than exit directly
903 (re-entrancy problem causes more problems than it's worth)
904
9051.8.1 (03-12-2003):
906 * fix gmp detection (problem pointed out by Nix)
907 * fix/improve the error message if test compiling with mysql fails
908 * new CL option --interactive for interactive db update
909 * fix some compiler warnings from IRIX MIPS compiler
910 * kern_head.h, kern_head.c: option to disable IDT check
911 * kern_head.h, kern_head.c: update kernel syscall table (2.4.20,2.6)
912 * sh_utmp.c: count number of logins (request by Erwin Van De Velde)
913 * change username -> userid, remove (long) userid (bug noticed
914 by Erwin Van De Velde)
915 * emit ADDED message for new SUID/SGID files
916 * add trailing slash to excluded directory if there is none
917
9181.8.0a (04-11-2003):
919 * sh_error.c: remove two debug printf's
920
9211.8.0 (31-10-2003):
922 * manual: make ps file fit on both a4 and letter paper
923 * sh_socket.c, sh_socket.h, sh_forward.c: socket interface
924 to send (quit/reload) commands to clients
925 * sh_forward.c, configure.ac: enable build with libwrap
926 (Wietse Venema's TCP Wrappers library)
927 * sh_ignore.c, sh_ignore.h, sh_files.c, sh_hash.c, sh_readconf.c:
928 new option to suppress messages for new and/or deleted files
929 * samhainrc.aix5.2.0: contributed by Christoph Kiefer
930 * samhain.c: fix compile warning on solaris (noticed by Ian Hunt)
931 * sh_database.c: undef debug code for oracle
932 * samhain.oracle.init: contributed by Joern Michael Krueger
933 * configure.ac, sh_utils.ac, Makefile.in, sh_modules.c,
934 sh_cat.c, sh_cat.h, sh_mounts.c/h, sh_userfiles.c/h:
935 check-mounts and userfiles modules contributed by eircom.net
936 * sh_utils.c: fix off-by-one bug in sh_util_compress()
937 * sh_forward.c, sh_tools.c, configure.ac:
938 version 2 client/server protocol
939 * sh_mail.c: add %S to include severity in subject (user request)
940 * sh_suidchk.c, 1093: fix warning about unused var 'flags' on FreeBSD
941 * samhain.h, sh_unix.h, sh_unix.c: extern inline -> static inline
942 for --enable-ptrace
943 * samhain.c: lower priority for 'uninitialized module' message
944 * sh_entropy.c: lower priority for message if /dev/random blocks and
945 /dev/urandom is available
946 * improved error messages in sh_readconf.c
947 * print system error message for getpwuid, getgrgid
948 * fix missing module init after SIGHUP (noticed by Cian Synnott)
949
9501.7.12 (13-10-2003):
951 * sh_mail.c: fix buffer overflow in mail handler (introduced in 1.7.10)
952 thanks to bug reports by Jason Martin and Matthew P. Cox
953
9541.7.11 (01-09-2003):
955 * samhain.c, samhain.h, sh_unix.c, sh_forward.c, sh_html.h:
956 - change SIG_USR1 to switch between dbg on/off
957 - change SIG_USR2 to switch between suspend on/off
958 - fix CLT_ILLEGAL to actually work
959 - introduce new state CLT_SUSPEND
960 - force reauthentication after suspend
961 * slib.c: change MAXFD from FOPEN_MAX (16) -> 1024
962 * sh_suidchk.c: better AIX fs detection (Christoph)
963 * sh_entropy.c: increase buffer size for unix entropy gatherer
964 (problem reported by D. Danielson)
965 * default config files: add lots of comments, list more options
966 * sh_error.c: set default severities to 'crit'
967 * sh_readconf.c, sh_cat.c, sh_cat.h: stricter check on config
968 file syntax, issue warnings (triggered by C. Kiefer)
969 * Makefile.in: handle depend-gen errors more gracefully
970 * sh_err_console.c: fix bug in enable_msgq (reported by F. Behrens)
971 * configure.ac: workaround for mysql_config weird output
972 (reported by G. Faron)
973 * sh_unix.c, sh_tiger0.c: check IO limit during read of large files
974 * depend-gen.c: close streams before attempting to rename (Cygwin)
975 * Makefile.in: fail gracefully if depend-gen fails
976 * sh_database.c: sh_database_query(postgresql): fixed missing SL_ENTER
977
9781.7.10 (27-07-2003):
979 * FreeBSD init script: define $pidfile (reported by D. Thiel)
980 * sh_unix.c, sh_unix.h: fix compile error on AIX 4.2
981 * sh_schedule.c: fix bad array size
982 * samhain.c: fix pid_t <> int casts
983 * sh_kern.c: fix repetitive messages
984 * configure.ac: try to bootstrap if TIGER192 not supported by gpg,
985 provide a detailed error message
986 * configure.ac: try harder to locate mysql
987 * docs/Changelog: retroactively add release dates, if known
988 * sh_mail.c: fix potential message truncation in mailer
989 * sh_unix.c, samhain.c, samhain.h: make --enable-ptrace more portable
990 * sh_readconf.c: fix segfault (dereference of uninitialized pointer)
991 if --with-gpg and --enable-stealth are used together (reported
992 by Anthony Caetano)
993 * sh_unix.c, samhain.c, sh_calls.c: fix problems with descriptive
994 error messages (larger GLOB_LEN, stat fills aud_err_message)
995
9961.7.9 (30-06-2003):
997 * sh_err_log.c: fix segfault on SIGABRT (dereference of freed memory),
998 problems with SIGABRT noticed by Brian and Alf B Lervåg
999 * deploy.sh.in: fix some bugs (found by Alf B Lervåg)
1000 * scripts/chroot.sh: fix typo (found by Alf B Lervåg)
1001 * configure.ac (khide): search also for 'd sys_call_table' (noted by
1002 cuek_saja)
1003 * strip whitespace before checking gpg checksum (noted by D. Thiel)
1004 * manual (faq section): explain how to stop console output
1005 * Makefile.in: fix re-naming of yule with --enable-install-name
1006 * HOWTO-client+server.html: fix typo (noted by xavier renaut)
1007 * configure.ac: escape '-' in awk regex (required by GNU awk 3.1.1)
1008
10091.7.8 (28-05-2003):
1010 * sh_unix.c: new mlock implementation with reference count
1011 and page alignment (fix for solaris problem)
1012 * kern_head.c: search also for 'xxxxxxxx d sys_call_table'
1013 * sh_html.c: write status comment (for Beltane 2)
1014 * add CL option --delimited for comma-delimited signature database dump
1015 * sh_mail.c: check exit status of push_list to fix counting bug
1016 (bug reported by Alan Moore)
1017 * configure.ac: add error message to --with-libs
1018 * fix spelling of $DAEMON in init script (noted by C. Grigoriu)
1019 * fix missing initgroups()
1020
10211.7.7 (06-05-2003):
1022 * sh_forward.c: fix bug if compiled with --enable-udp, but disabled
1023 in config file (found by Andy OBrien)
1024 * sh_database.c: sh_database_entry(): size -> c_size (two places)
1025 to fix writing of '\0' to arbitrary places :(
1026 (problem pointed out by Stefan Giesen)
1027 * profiles/*/configopts: fix --with-base -> --enable-base
1028
10291.7.6 (24-04-2003):
1030 * sh_forward.c, entry.html, head.html: fix/additions by Stefan Giesen
1031 * fix samhain_hide for the O(1) scheduler used by RedHat:
1032 configure.ac, acconfig.h: check for next_task in struct task_struct
1033 samhain_hide.c: use find_task_by_pid if no next_task in task_struct
1034 * samhain_erase.c: add MODULE_LICENSE("GPL") to fix warning
1035
10361.7.5 (15-04-2003):
1037 * sh_cat.c, sh_forward.c, sh_hash.c: fix double 'msg' tag
1038 * manual: point out the bmaxdata problem on AIX in faq section
1039 * trustfile.c: don't check symlinks (permissions of directory count)
1040 * sh_schedule.c: fix problem with daylight saving switchover
1041 * sh_samhain.c: close all open fd's >2 before reading the conf file
1042 * sh_unix.c: fix dereferenced NULL pointer when exiting on non-existing
1043 user
1044 * sh_forward.c: fix dereferenced NULL pointer when exiting on udp error
1045 * sh_forward.c: place timestamp code before select() timeout handler
1046 * fix incorrect class of timestamp messages (conflict with manual)
1047 * sh_readconf.c, sh_forward.c: new config option SetStripDomain
1048 * configure.ac: add warning if /lib/modules/`uname -r`/build/include
1049 not found
1050 * samhain_hide.c: adapt for RedHat 2.4 kernel (fetch sys_call_table
1051 address from System.map)
1052 * sh_err_syslog.c: fix for Solaris
1053 * samhain.spec.in: strip REQ_FROM_SERVER from config file install path
1054
10551.7.4 (21-03-2003):
1056 * configure.ac: fix bug in defargs (--with-base > --enable-base)
1057 * aclocal.ac: detect unsupported options
1058 * kern_check: add syscalls, skip unused syscalls
1059 * fix Manual (--enable.../--with... inconsistency)
1060 * add two HOWTOs (signed files, server/client)
1061 * moved manual into new subdirectory docs/
1062 * add admin scripts by S.Bailey/M.Redinger
1063 * option to have a version string in db file
1064
10651.7.3 (23-02-2003):
1066 * samhain-install.sh: use yule user key for signing on install
1067 * fix a bug in sh_err_console.c (attempted write to const char)
1068 * sh_gpg.c: if server, always use ~unprivileged_user/.gnupg
1069 * Makefile.in: make target 'trustfile' depend on config.h
1070 * configure.ac: don't use install_name before it is defined ...
1071 * sh_tiger0.c: fix bug in checksum computation introduced in 1.7.2
1072 * samhain.c: make sure daemon cannot be forced into 'update' mode
1073 * sh_hash.c: remove AIX workaround (AIX has been fixed meanwhile)
1074
10751.7.2 (04-02-2003):
1076 * sh_kern.c: use sys_call_table address from System.map
1077 * fix for reserved SQL keyword 'group'
1078 * add AC_SYS_LARGEFILE to configure.ac
1079 * allow separate client-specific log files for server
1080 * sstrip.c: compile sstrip code only for i386
1081 * sh_unix.c: closeall: don't close trace file
1082 * slib.c: don't trace sl_is_suid (leads to recursion in trace handler)
1083 * samhain-install.sh.in: fix detection of LSB compliant systems
1084 * sh_tools.c: get_client_*_file: lstat -> stat to allow symlinks
1085 * sh_forward.c: sh_forward_do_write: set O_NONBLOCK for fd
1086 (may block otherwise, for no good reason apparently ...)
1087 * samhain.spec.in: replace %configure with ./configure
1088 * sh_unix.c: re-write signal handling (use __malloc_hook et al. to
1089 check whether we are in the middle of a free/malloc/realloc/memalign)
1090 * sh_unix.c: use new safe_logger() function to log from signal handler
1091 * sh_err_log.c: fix xml
1092 *
1093 * fix Makefile.in to exit non-zero on compile failure
1094 * database init: create index on log_host, entry_status
1095 * sh_suidchk.c: fix path building
1096 * sh_tiger0.c: read larger blocks
1097 * sh_hash.c: cast inode to UINT32
1098 * sh_tools.c: check that config/database files size fits in uint
1099 * sh_error.c: export flag_err_debug to avoid unnecessary calls
1100 * sh_unix.c: save the open() call in sh_unix_getinfo_attr()
1101 * profiles/redhat_i386/bootscript: add # description field
1102 * deploy.sh.in: set owner + permissions for files in yule_filedir
1103 * profiles/debianlinux_i386: fix bootscript
1104 * Makefile.in: fix deploy file lists and targets (include init+scripts)
1105 * MLOCK GOOD/BAD -> SL_FALSE/SL_TRUE
1106 * sh_mail.c: GOOD/BAD -> SL_FALSE/SL_TRUE (AIX sys/param.h)
1107 * sh_err_syslog.c: split long messages rather than truncating
1108 * sh_error.c: allocate msg to fix truncation limit
1109 * sh_unix.c: closeall fd's >= 3 in non-daemon mode (inherited
1110 filedescriptors may exceed FOPEN_MAX, causing problems in
1111 sl_open_file)
1112 * sh_err_console.c: avoid stdio
1113 * trustfile: dirz: make swp[] static
1114 * slib.c: speed up sl_strlcat
1115 * clean up some bad heap allocation (PATH_MAX+(1|2) -> PATH_MAX)
1116 * remove some unused code
1117 * slib.c: support long long int in the snprintf replacement
1118 * configure.ac: new configure macro to check whether sa_sigaction works
1119 * Makefile.in: make sstrip, encode dependent on config.h
1120
11211.7.1a (08-01-2003):
1122 * fix a syntax error in samhain-install.sh.in
1123
11241.7.1 (07-01-2003):
1125 * search runlevel scripts in ./init or ./
1126 * handle all distro-specific Linux runlevel script issues
1127 within a single script
1128 * support install-boot on Yellow Dog Linux and Slackware
1129 * samhain-install.sh: fix a bug for unknown Linux
1130 ('"' not closed, DVER not set)
1131 * samhain-install.sh: check for /etc/yellowdog-release
1132 * sh_database.c: fix missing entry for 'userid' in attr_tab[]
1133 * fix debian.rules.in (disable sstrip)
1134 * update make targets: 'srpm', 'srpm-dist', 'rpm'
1135 * check for zlib if mysql is used
1136 * workaround for NetBSD bug with libresolve
1137 * fixed problems with spec files
1138
11391.7.0 (22-12-2002):
1140 * improved spec files (Andre Oliveira da Costa <brblueser@uol.com.br>)
1141 * sh_unix.c: fix a dereferenced static pointer in tf_trust_check
1142 * runlevel scripts: remove pid file after stop
1143 * make the data directory read-only for the daemon
1144 * treat 'localhost' specially in MX resolver
1145 * sh_err_log.c: set sh.flag.log_start == TRUE after writing </trail>
1146 * deploy.sh.in: fix quoting (fix by Simon Bailey)
1147 * slib.c: make sl_get_euid et al. behave well if uids not stored
1148 * trustfile.c: use euid = uid(SH_IDENT) if server
1149 * sh_mail.c: include an MX resolver
1150 * Makefile.in: install-user routine for user installation
1151 * have yule drop root
1152 * sh_tools.c: open_temp use logdir if server
1153 * unified options for runlevel script
1154 * HP-UX, IRIX runlevel scripts
1155 * AIX inittab entry
1156
11571.6.6 (13-12-2002):
1158 * configure.ac: solaris cc -O2 -> -xO2
1159 * sstrip.c: avoid alpha architecture
1160 * profiles/solaris/configopts: no --enable-static
1161 * sh_forward.c: sh_forward_req_file: copy argument to local array
1162
11631.6.5 (04-12-2002):
1164 * sh_utmp.c: set userlist = NULL in sh_utmp_end ()
1165 * sh_unix.c: do not assume that environ is sane
1166 * exit handler: write </trail>
1167 * sh_log_file(NULL): test sh.flag.log_start != S_TRUE
1168 * FreeBSD rc script does not blindly accept content of pid file
1169 * configure.ac: allow 'localhost' for log server
1170 * sh_calls.c: retry_connect: ntohs (port)
1171 * testrun_2[abc].sh: --with-logserver=localhost for client
1172
11731.6.4 (12-11-2002):
1174 * sh_tools.c: fix error when escaping '=<'
1175 * fix the 'make srpm' target
1176 * deploy.sh.in: avoid that client is named 'yule'
1177 * define memset to sl_memset
1178 * fix type cast of uid_t, gid_t
1179
11801.6.3 (31-10-2002):
1181 * fix options for Sun/Solaris native compiler
1182 * sh_unix.c: MSG_FI_LIST (line 2333): cast theFile->size to fix error
1183 * test sstrip on freebsd
1184 * default config file for freebsd
1185 * make target to build .deb packages
1186 * sh_readconf.c: fix bug in error message
1187 * samhain.c, sh_suidchk.c: fix initialization of suidchk
1188 * samhain-install.sh.in: don't remove config file by default
1189 * samhain-install.sh.in: support complete de-installation
1190 * samhain-install.sh.in: add support for Gentoo, FreeBSD, and Solaris
1191 * samhain-install.sh.in: check more paths
1192 * sh_unix.c: fix sys_siglist declaration [NetBSD portability issue]
1193 * sh_calls.c: save error message in retry_lstat()
1194
11951.6.2 (04-10-2002):
1196 * make target to build rpms
1197 * update samhain.spec.in, samhain.startRedHat
1198 * support DESTDIR, as in 'make DESTDIR=/what/ever install'
1199 * explicitely set -fno-omit-frame-pointer b/o gcc bug
1200 * mv configure.in to configure.ac to benefit from autoconf wrapper
1201 * sh_modules.c, sh_modules.h: add mod_reconf() to run at SIGHUP
1202 * slib.c: fix debug messages (no msgs for dlogActive <= 1)
1203 * sh_schedule.c, samhain.c, sh_suidchk.c:
1204 scheduler may accept multiple schedules
1205
12061.6.1 (04-09-2002):
1207 * sh_schedule.c: bugfix (executes only after first day)
1208 * rm obsolete WITH_TRACE stuff
1209 * new dlog() function for debug logging
1210 * some more descriptive error messages
1211
12121.6.0 (27-08-2002):
1213 * omit the -fomit-frame-pointer option (bugs in some gcc versions ?)
1214 * sh_error.c: fix escape mode when logging to database
1215 * sh_forward.c: fix error (twice escape) in recv_syslog_socket
1216 * sh_tools.c: change escape mode for server-received data
1217 * sh_mem.c: change ulong -> size_t in sh_mem_malloc()
1218 * configure.in: fix localstatedir if --prefix=USR
1219 * sh_hash.c: snprintf() -> sl_snprintf()
1220
12211.5.5 (07-08-2002):
1222 * sh_err_log.c: fix incorrect xml syntax for client messages
1223 logged by server
1224 * sh_err_log.c: fix incorrect '</trail>' entries on client EXIT
1225 * sh_files.c: introduce file_class_next
1226 this fixes the problem that a policy for the directory
1227 inode erroneously becomes a policy for the directory itself.
1228
12291.5.4 (17-07-2002):
1230 * sh_hash.c: fix buffer overflow with (micro-)stealth
1231 * sh_database.c: set path[] 1024 -> 12288
1232 * sh_database.c: set query[] 2048 -> 16383
1233 * sh_database.c: set values[] 1024 -> 16383
1234 * sh_forward.c: larger limit for message size (16 kB)
1235 * trustfile.c: set MAXFILENAME 2048 -> 4096
1236 * fixed a bug in the handling of filenames with embedded newlines
1237 * sh_files.c: fix missing sh_util_safe_name() in debug output
1238 * --with-sender can specify a full address
1239 * fix xml log in a backwards compatible way
1240
12411.5.3 (03-07-2002):
1242 * fix combination of stealth and sql logging
1243 * fix some more places where invalid UIDs/GIDs trigger errors
1244
12451.5.2 (01-07-2002):
1246 * include solaris config file from (sean [at] boran d.o.t com)
1247 * test for files/dirz defined twice in the configuration file
1248 * option to disable reverse lookup on outbound connections
1249 * option to use socket peer as client name (with name resolving)
1250 * sh_html.c: fix an HTML bug (twice </head><body>)
1251 * sh_suidchk.c: fix warning on AIX b/o dirname()
1252 * allow logging server -> syslog if yule is NOT configured to
1253 receive syslog messages
1254 * define PRIi64 to "lld" if undefined
1255 * invalid UIDs: use gid/uid as name, error level SeverityNames
1256 * minor fixes for connect_port
1257 * sh_hash.c: flush output of db listing before _exit()
1258 * configure.in: fix incorrect default ${install_name} for server
1259 * configure.in: try harder to find mysql.h / libpq-fe.h
1260 * sh_files.c: sh_files_checkdir:
1261 closedir() early to not exhaust OPEN_MAX
1262
12631.5.1a (30-05-2002):
1264 * fix missing LSB init script
1265
12661.5.1 (27-05-2002):
1267 * fix '-t update' option
1268
12691.5.0a (23-05-2002):
1270 * fix configure.in
1271
12721.5.0 (22-05-2002):
1273 * include solaris nosuid patch from (nathoo [at] co d.o.t ru)
1274 * similar fix for bsd nosuid
1275 * speed up -t update
1276 * convert manual to DocBook, distribute html and ps
1277 * fix some more problems with configure.in, Makefile.in
1278 * fix testsuite, add tests for udp, mysql
1279 * MSG_TCP_MSG: host -> remote_host
1280 * convert to autoconf 2.53
1281 * make c_bits.sh exit with status 0
1282 * sh_database.c #include "mysql.h" --> <mysql.h>, ditto libpq-fe.h
1283 to avoid dependency tracking problems
1284 * samhain.c remove *YULE* #ifdefs
1285 * acconfig.h remove *YULE* #undefs
1286 * samhain.c: procdirSamhain: lstat --> stat (allow symlink)
1287 * configure.in: add checks for correct user input
1288 * Makefile.in: add automatic dependency tracking
1289 * depend-gen: tool to figure out dependencies
1290 * chkconfig comments in redhat start scripts
1291
12921.4.8:
1293 * sh_database.c: fix missing attr_old, attr_new, (from)host columns
1294 * configure.in, Makefile.in: fix an error in the configfile
1295 definition with REQ_FROM_SERVER
1296 * sh_err_console, sh_err_log: avoid recurrent failure messages
1297 * timeout on read from files (/proc)
1298 * fix errrors with setjmp/longjmp/alarm
1299 * fix memory leak in server (~20 byte/file download in sh_tools, 930)
1300 * check gpg signature for files downloaded from server, add a
1301 regression test
1302 * fix chown in solaris bootscript
1303 * provide second scheduler for file check
1304 * provide scheduler for file check
1305 * provide scheduler for SUID check
1306
13071.4.7 (08-04-2002):
1308 * make daemon control LSB-compliant (arguments, exit status)
1309 * set log_ref = 0 for server messages
1310 * boolean option SetDBServerTstamp to disable entering server
1311 timestamps for received client messages into database
1312 * sh_suidcheck: check for "nosuid" mount option if getmntent is used
1313 * fix logrotate script in manual (reported by Scott Worthington)
1314 * don't strip numerical IP addresses
1315 * check item->status_now != CLT_TOOLONG in client_time_check()
1316 * set log_host to client in db client message
1317
13181.4.6a (20-03-2002):
1319 * define prefix in deploy.sh
1320
13211.4.6 (19-03-2002):
1322 * modify samhain_hide.c to hide processes on new Linux kernels
1323 * better error diagnostics in kern_head.c
1324 * fix compile error in all_items ()
1325 * check length of install-name in enable-khide (max is 15)
1326 * define exec_prefix in deploy.sh.in
1327 * make configure a bit more cross-compiler friendly
1328
13291.4.5 (07-03-2002):
1330 * Make sure missing file is reported even if ptr->reported == S_TRUE
1331 because the file has been added.
1332 * propagate 'reported' flag from sh_files_checkdir() into file list
1333 * close checkfd in sh_gpg_check_file_sign()
1334 * sh_derr(): kill(parent, SIGCONT) after ptrace(PT_DETACH,...)
1335 * use sh.srvcons.name in dbg() to get debugging info from daemon
1336 * option to log file timestamps with localtime instead of GMT
1337 * comment out MSG_FI_ADD in sh_dirs_chk () - obsoleted by mandatory
1338 sh_files_filecheck(directory) that triggers MSG_FI_ADD in sh_hash.c
1339 * set ptr->reported = S_FALSE; for reappeared files in sh_files_chk()
1340 to make sure re-disappearing will get reported
1341 * new function sh_hash_set_missing() to remove file record
1342 without (duplicate) 'missing' message
1343 * make sure all items are reported for added files
1344 * fix stealth mode with sh_kern (encode sh_ks.h -> sh_ks_xor.h)
1345 * clarify in the documentation which gpg options to use for signing
1346
13471.4.4 (11-02-2002):
1348 * check that parent process has exited before writing PID file
1349 * promote MGG_W_CHDIR to SH_ERR_ERR
1350 * add error message to sh_unix_testlock
1351 * fix missing _() macro in sh_aud_set_functions
1352
13531.4.3 (05-02-2002):
1354 * don't check attributes for symlinks (may cause device access)
1355 * add USE mysql; USE samhain; to samhain.mysql.init
1356 * point out the MessageHeader/mysql problem in manual
1357 * add -lz to LIBS for mysql
1358 * strip after install, avoid double strip
1359
13601.4.2 (27-01-2002):
1361 * support for EGD
1362 * fix some more problems with install-deploy / deploy.sh
1363 * fix a bug in profiles/suselinux_i386/bootscript (INSTALL_NAME_)
1364 * fixed the 'external logging' test (init rather than none in rc file)
1365
13661.4.1:
1367 * SuSE: include run level 4+5
1368 * install location of hiding kernel modules changed - some insmod
1369 variants do not test for /lib/modules/$(uname -r)/module_name.o
1370 * new make targets 'install-deploy', 'uninstall-deploy'
1371 * fixed make targets 'deploydir', 'deploydirfast'
1372 * bail on unsupported CL option in deploy.sh
1373 * fix various bugs in deploy.sh
1374
13751.4.0 (16-01-2002):
1376 * fixed missing 'dirname' on Mac OS X
1377 * fixed && tested for/with postgres
1378 * 'user=' -> 'userid=' (reserved word in sql)
1379 * fix the endianess + size of file database; this changes db format
1380 for any non-Linux OS
1381 * --enable-old-format for old (V1.3) database format
1382 * getopt, samhain.c, samhain.h: option -f to loop if not daemon
1383 * sh_hash: list numeric + char data to allow file db update on
1384 server side
1385 * sh_database: modify handling of integer (long) data
1386 * sh_database: datetime in database
1387 * sh_database: hash field in database
1388 * sh_database: rewrite database insert string construction
1389 [use INSERT INTO log (fields) VALUES (values);]
1390 * makefile suse 7.x runlevel entries
1391
13921.3.7 (06-01-2002):
1393 * fix incorrect escape in sh_tools_safe_name
1394 * fix sh_error_handle (4. argument) in sh_extern.c
1395
13961.3.6c:
1397 * fix segfault in sh_database (mysql logging) on solaris
1398
13991.3.6b (03-01-2002):
1400 * fix syntax error ('==') in Makefile.in
1401 * fix configure.in (path for /lib/modules/$(uname -r)/build/include)
1402 * fix sh_kern.c (redeclaration of 'j')
1403
14041.3.6 (03-01-2002):
1405 * sh_kern.c: check integrity of int 80h vector
1406 (SucKIT rootkit - Phrack 58)
1407 * make sure childs in sh_kern are wait()'ed for
1408 * provide start/stop/restart/reload/status interface
1409 * fix a potential segfault (dereferenced NULL pointer) in the server
1410 * use sh_util_flagval for sh_unix_setdaemon
1411 * documentation for logging to SQL database
1412 * configure.in: check for -I/lib/modules/$(uname -r)/build/include
1413 * fix trustfile.c to ignore invalid users
1414 * separate 'make install-samhain' and 'make install-yule'
1415 * separate default log/pid/config files for server/client
1416 - less problems running server and client on same host
1417 * rewrite deploy.sh(.in):
1418 - don't use (make|install) if deploying
1419 - use command line options
1420 - better integrate into server environment
1421 - write install db
1422 * always write a pidfile if daemon
1423 * don't use server's config file as fallback for downloading client
1424 * don't overwrite config file when doing 'make install'
1425
14261.3.5 (28-12-2001):
1427 * fix --enable-message-queue for newer glibc versions
1428 * log to SQL database: implemented, but undocumented yet,
1429 needs to be tested further
1430 * xml: escape received syslog messages
1431 * xml: rename 'time' to 'tstamp'
1432 * make targets: make [un]install-[boot-]yule
1433 (for server-only installation)
1434 * fix samhain_hide.c for 2.4 kernel
1435 * fix sh_kern for updated samhain_hide.c
1436 * new option -j to just list the logfile
1437 * sh_getopt.c: recognize -Dt check for -D -t check
1438 * sh_tiger0.c: fix compiler warning (memmove) on Solaris
1439
14401.3.4 (12-12-2001):
1441 * sh_suidchk.c: option to limit files per second
1442 * sh_unix.c: option to limit (kilo)bytes per second
1443 * sh_hash.c: fix potential problem with '\n' in filename
1444 (not backward compatible if there are filenames with '=')
1445
14461.3.3 (03-12-2001):
1447 * sh_readconf.c, samhain.h, samhain.c, sh_suidchk.c:
1448 option SetNiceLevel to set scheduling priority
1449 * sh_hash.c: bugfix for database listing on Solaris
1450 * taus_seed: bugfix for emergency backup rng seed
1451 * sh_util_safe_name: fix for XML
1452 * sh_utmp_set_login_activate: use sh_util_flagval
1453 * sh_utils.c: sh_util_obscurename: rm 'space' from list
1454 * more backtrace macros
1455 * sh_util_flagval: fix bug to recognize 1/0
1456 * fix test scripts testtimesrv.sh, testext.sh (test.sh 6/5)
1457 * rm stray debug fprintf in sh_srp.c
1458
14591.3.2 (27-11-2001):
1460 * sh_hash.c: fix an error introduced in 1.3.1
1461 * set RLIMIT_CORE to RLIM_INFINITY if --enable-debug
1462
14631.3.1 (25-11-2001):
1464 * slib.c: get backtrace with --enable-debug
1465 * sh_unix.c: allow core dumps when --enable-debug
1466 * configure.in: fix default message queue permissions
1467 * sh_suidchk.c: automatically include suid/sgid files in database
1468 * sh_suidchk.c: check all suid/sgid files
1469 * sh_hash.c: don't insert duplicates when reading the database
1470 * sh_utmp, sh_kern, samhain: fix 1sec offset in timer
1471 * sh_unix.c: don't require /dev/random to be non-world-writeable
1472 * server: fix segfault in zAVLTree.c if avltree == NULL (no clients)
1473 * client: fix segfault on Solaris if path_conf == NULL
1474 * testrun_1b.sh: \(^/.*\) -> \(/.*\) for Solaris sed
1475
14761.3.0 (31-10-2001):
1477 * support compiling with GNU gmp library
1478 * set 3 sec timer on client_time_check to avoid excessive (and
1479 unnecessary) calls under heavy load
1480 * replace sl_strlen with a macro
1481 * store client_t structure in AVL tree
1482 * database format incompatible with previous format, up the magic#
1483 * sh_html.c: cache entry template for speedup
1484 * slib.c: reset islong(double) in sl_printf_count
1485 * sh_hash.c: report on rdev change
1486 * sh_hash.c: print size in 64 bit
1487 * sh_hash.c: save in absolute size types
1488 * sh_unix.c: get values as appropriate type (time_t, dev_t, ...)
1489
14901.2.10:
1491 * update MANUAL
1492 * sh_unix.c: tiger_hash -> tiger_generic_hash
1493 * sh_readcon.c: DigestAlgo option
1494 * sh_tiger0.c: add MD5 and SHA1
1495 * sh_unix.c: fix minor problem with win2k/cygwin
1496
14971.2.9 (17-10-2001):
1498 * fix problem with entry template/empty hostname
1499 * fix MASK_USER_ (MTM -> ATM)
1500 * typo fixed in configure.in (${install_name} -> {install_name})
1501 * bugfix group_old -> size_old in XML code
1502 * skip armor header in signed files
1503
15041.2.8 (29-09-2001):
1505 * Mac OS X: in sh_getopt.c, rename table[] to op_table[] to avoid
1506 obscure compiler warning
1507 * Mac OS X: fix test scripts
1508 * Mac OS X: import newest config.guess, config.sub from ftp.gnu.org
1509 * implement deadtime in syslog recv code to protect against flooding
1510 * sh_err_log: sl_close(fd) if lock|forward fails
1511 * compliance with Filesystem Hierarchy Standard -- Version 2.2 final
1512 * add policies User0, User1
1513 * fix compile problem (FreeBSD) in sh_suidchk.c
1514 * macro to check for debugger breakpoints (linux/i386)
1515 * check for solaris (does not work) in sh_derr (--enable-ptrace)
1516 * option to listen on 514/udp for syslog, drop root
1517 irrevocably if compiled thus
1518 * use (check_mask & MODI_ATM) to decide whether to reset utime
1519 * reset the policy masks on sighup
1520 * option to write XML log messages
1521 * cleanup of message catalog
1522 * modified error messages for BADCONN
1523 * error messages for Rijndael
1524 * block recursive error messages within sh_error_handler()
1525 - would hang the machine ... -
1526
15271.2.7:
1528 * sh_files, sh_utils: check top level directory
1529 * sh_kern, sh_cat, kern_head: check syscall code, fork subprocess
1530 for reading from /dev/kmem
1531 * include /boot in default samhainrc
1532 * change source distribution signing/packaging system
1533 * Makefile, README, MANUAL: adhere to file system standard,
1534 document new locations
1535 * fix a bug in samhain_hide.c
1536
15371.2.6:
1538 * reset list of trusted users before config file re-read
1539 * TrustedUser=... can be a list
1540 * fix severity for files missing from IgnoreAll
1541
15421.2.5:
1543 * include example_pager.pl, example_sms.pl scripts
1544 * explain paging/sms setup in docs
1545 * allow manual exclusion of a directory in suidcheck
1546 * automatically track all file changes
1547 * remove missing files from in-memory database
1548 * add $(KERN) to DEPLOYFILES
1549
15501.2.4:
1551 * log IP address for login/logout events, if supported by the OS
1552 * release block in globerr (callback)
1553
1554-------------
1555
15561.2.3:
1557 * fix problem with reading stealth configuration
1558 * fix a few formats in sh_cat.c
1559 * always use strncmp for file system type check in sh_suidchk.c
1560 (trailing 'fs' may be system specific for some types)
1561 * no bare LF in messages (RFC 2822)
1562 * no lines longer than 998 chars (RFC 2822)
1563 * fix error in testrc_1
1564
15651.2.2:
1566 * make tmp file directory a compile time option
1567 * fix minor bugs in tmp file allocator (potential memory leak,
1568 double slash if root directory)
1569 * obsolete testpipe script removed
1570
15711.2.1:
1572 * fix memory alignment in rijndael-api-fst.c: blockEncrypt()
1573 * fix byte order in HMAC code (compatibility fix for Linux/HP-UX)
1574 * removed a debug fprintf()
1575
15761.2.0:
1577 * fix a bug in the HMAC implementation (thanks to Cesar Tascon
1578 for help in tracking down this one)
1579 * module to check the file system for SUID/SGID files
1580
15811.1.16 (never released):
1582 * fix the recursion depth -1 option as described in the manual
1583 * optional database reload on SIGHUP
1584 * fix a race condition when checking that /dev/random is a charakter
1585 device
1586 * redirect stderr to /dev/null for c_random
1587 (AIX may segfault in netstat...)
1588 * check whether /dev/random is a charakter device in c_random.sh
1589 (we know at least one sysadmin who has set up a fake /dev/random ...)
1590 * don't give NULL as 2. and 3. arg to execve if not Linux - some
1591 Unices (notably Solaris) don't like it
1592 * init ptr = NULL in my_malloc (compiler warning)
1593 * make the bitmask for tests configureable (suggestion by A. Dunkel)
1594 * make the bitmask for tests a static variable
1595 * make (database/logfile/lockfile) path configurable
1596 (to run multiple instances of samhain from an NFS share - on the
1597 wishlist of J. Patton)
1598
15991.1.15 (never released):
1600 * fix minor error in testcompile.sh (rm test_log only at start)
1601 * return from subroutines on sig_terminate == 1
1602 (faster exit on SIGTERM)
1603 * fix re-configuration of addresses
1604 * use sh_util_flagval() in sh_mail_setFlag and sh_kern_set_activate
1605 * SysV message queue as compile option
1606 * config file option to set console device
1607 * removed the pre 1.1.9 code bloat
1608 * don't print the LOGKEY to the console
1609
16101.1.14:
1611 * fix an error in the setup consistency check
1612 * make target to uninstall runtime files
1613 * trustfile.c: check return code of readlink(), fix off-by-one error
1614 * sh_files.c: fix placement of terminator after readlink() call
1615 * sh_files.c: fix a missing set_suid()/unset_suid()
1616 - suid should work, but is not recommended -
1617 * more debug statements in c/s code
1618 * avoid re-entry in sh_unix_sigexit
1619 * put a block around free() and malloc() in wrapper functions
1620 * ditto for glob()/globfree(), regcomp()/regfree(), fdopen()/fclose()
1621 - i.e. avoid corrupting the heap from a signal handler -
1622
16231.1.13:
1624 * optimized the size of the configure script somewhat
1625 * modify the compile and hash test scripts
1626 * read '\0's in sh_unix_getline
1627 * exponential schedule for connection attempts
1628 * make stealth working properly with signed files
1629 - config file should be signed now before embedding in picture -
1630 * fix a race in using signed files
1631 * updated err messages for PWNULL, GRNULL
1632 * add missing shell script for test 11
1633 * add mandatory source file/line info with -p debug
1634 * add mandatory source line info with BADCONN
1635 * fix a latex error in the manual
1636
16371.1.12:
1638 * debug output to console if compiled with --enable-debug and
1639 running as daemon
1640 * make reportonlyonce=true the default
1641 * make sure state changes of a file are always reported, even
1642 with reportonlyonce=true
1643 * Linux kernel modules (samhain_hide, samhain_erase)
1644 * fixed incorrect return value of sh_util_flagval
1645 * fixed an error in sh_files.c: happens with -t init and first
1646 file that is checked does not exist
1647 * revised install/uninstall targets in the Makefile
1648 * module to check for clobbered kernel syscalls (tested on Linux 2.2)
1649 * more diagnostic error messages in sh_gpg.c
1650 * more diagnostic error messages in sh_mail.c
1651 * error in mail.c fixed
1652 (address -> address_list[i] for multiple recipients)
1653 * docs updated, better(?) explanation of signed files
1654 * skip over path in gpg checksum output
1655 * check client name against IP address and FQDN
1656 * fix for --disable-* in config file
1657 * fixed a server crash (MSG_TCP_OKMSG without arg)
1658 if the server is run with debug level output threshold
1659 * catch EAGAIN in sh_gpg.c pipe reader
1660 * fix the 'external logging' test to make it work on BSD
1661 * error message if no local path to init DB
1662 * check for i86/Solaris in configure (vsnprintf prototype)
1663 * make SRP the default
1664
16651.1.11:
1666 * make log file verification more convenient
1667 * fix problem with message classes in stealth mode
1668 * linux: do not try to read file attributes for devices
1669 * handle the root directory correctly (avoid "//" in listing)
1670 * fix problems with blockin on FIFOs/char dev
1671 pointed out by I. Rogalsky (rog@iis.fhg.de)
1672 - open in nonblocking mode for read, then set to blocking
1673 - open file only if regular
1674 * fix alignment in memory profiler
1675
16761.1.10:
1677 * minor code cleanup
1678 * fix an error in trustfile.c (handling of empty/incomplete
1679 group entries in /etc/group, bug report by A. Capriotti )
1680
16811.1.9:
1682 * compatibility option for old behaviour (plain hash instead
1683 of HMAC, ECB instead of CBC mode)
1684 * use CBC rather than ECB mode for encryption
1685 * use HMAC-TIGER for message authentication codes
1686 * handle NULL data in sh_tiger_hash
1687 * option to set syslog facility (default is LOG_AUTHPRIV)
1688 * longer timeout (300 sec) on /dev/random if no /dev/urandom
1689 * fix minor output error with stealth option
1690 * option not to log names of config/database files on startup
1691
16921.1.8:
1693 * fix error in syslog routine
1694 * fix missing 'test' in configure.in
1695 * fix error in replace_tab() in sh_html.c
1696 * fix minor memory leak in sh_util_regcmp()
1697
16981.1.7:
1699 * timeout on read_mbytes (from /dev/random; fallback to /dev/urandom)
1700 * fix for FreeBSD: ut_user -> ut_name in sh_utmp.c
1701 * fix for Alpha: consider $ac_cv_sizeof_unsigned_int_ in configure.in
1702 * fix for Alpha: format string in sh_tiger0.sh
1703 * on Linux, now compiles cleanly with
1704 -Wall -W -Wstrict-prototypes -Wcast-align
1705 * fix problem with recursion depth
1706 (pointed out by Vic <hvicha@mail.ru>)
1707 * #include "sh_tools.h" in sh_unix.c and fix the
1708 --with-timeserver option (reported by Vic <hvicha@mail.ru>)
1709 * place read_port(), MSG_TCP_NETRP outside ifdefs
1710 * close fd/zero skey before execve
1711 * verify client name against socket peer
1712 * ... with configureable error priority
1713 * use strcmp() rather than strncmp() in search_register()
1714 * fix race between lstat() and open() for checksum
1715 (reported by dynamo <dynamo@ime.net>,
1716 JJohnson <JJohnson@penguincomputing.com>)
1717 * enable globbing for filenames
1718 * fix Solaris problem: siginfo_t may be NULL
1719 * fix missing SL_EBADGID in tf_trust_check
1720 * test case for external scripts, fix flushing pipe
1721 * fix a typo in sh_ext_type
1722 * do an fdexec w/checksum on Linux if calling external program
1723 * even safer tmp file creation
1724 * allow db update
1725 * fix compile options for --enable-debug
1726 * fixed a spelling error in the output
1727 * test program for full CS support (config/database download)
1728 * tell which file is searched for cs download
1729
17301.1.6:
1731 * fix bug in sh_readconf_line (segfault on erroneous config lines)
1732
17331.1.5:
1734 * sh_unix.c: sh_unix_getinfo_attr: f -> flags
1735 * use gettimeofday as last resort
17361.1.4:
1737 * fix AIX compiler warning in sh_forward (cast arg1 of sh_tiger_hash
1738 to (char *)
1739 * configure: add static link flags for some more os (from tar)
1740 * don't strip twice (some stupid systems abort)
1741 * fix for reading from /dev/random on non-Linux systems (untested)
1742 * sh_mail.c: end all message lines with \r\n
1743 * stealth: ignore \r, \"
1744 * take out tracing from --enable-debug (presently useless anyway)
1745 * fix some remaining cleartext with debug && stealth combined
1746 * fixed a small memory leak in sh_err_log.c
1747
17481.1.3:
1749 * fixed circular logic in taus_seed() (fallback method only)
1750 * fix for missing _SC_OPEN_MAX (runaway close())
1751
17521.1.2:
1753 * implement message classes
1754 * let server recognize client message severity and class
1755 * secondary log server
1756 * keep database in memory (allows to close file
1757 if retrieved from server)
1758 * encrypt client/server communication
1759
17601.1.1:
1761 * Compilation problems with native Solaris compiler fixed
1762 * fill in euid/ruid variable
1763 * manual.pdf --> MANUAL.pdf
1764 * debug sh_util_formatted()
1765 * http refresh 120sec for server stat page
1766 * trace/debug options
1767 * fixed problem with utmp.c options
1768 * fixed problem with sh_mail_setaddress
1769 * option for custom message header
1770 * fixed problem in compdata
1771 * fixed problem in mail verification
1772 * remove eventual trailing '/' in file names
1773 * fixed problem with report string for modified files
1774 * option to report in full detail
1775
17761.1.0:
1777 * Move error messages to catalog
1778 * Make error message format more uniform
1779 * Wrap sytem calls that could be interrupted by signals
1780 * Warn on append to database
1781 * Option for full details on mod. files
1782 * Option to report only once on mod. files
1783 * Generally speaking, major modifications with potential new bugs
1784
17850.9.5:
1786 * sh_hash.c: fixed erroneous checksum for config file
1787 * sh_html.c: fixed erroneous timestamp (last)
1788 * sh_tools.c: fixed connect_port (set port for cached address)
1789 * sh_srp.c: fix for '00' (='\0') in pw
1790 (last two fixes by Andreas Piesk)
1791
17920.9.4:
1793 * samhain.c: fcntl(1, ..) -> fcntl(2, ..)
1794 * sh_hash.c: copy 12 instead of 10 byte for c_attributes
1795 * 'empty directory' WARN -> INFO
1796
17970.9.3:
1798 * FreeBSD fixes:
1799 - c_random.sh: make sure /dev/random provides something
1800 rather than nothing
1801 - check for <netinet/in.h> and include it
1802 - include <sys/types.h> early
1803 - sh_utmp.c: fixed an occurence of ut_user
1804 - sh_utmp.c: #ifdef HAVE_UTTYPE static char terminated_line #endif
1805 - sh_forward.c: EBADMSG -> ENOMSG
1806 * sh_unix.c: check return value of gethostbyname
1807 * sh_entropy.c: fallback on /dev/urandom if /dev/random blocks for
1808 more than 30 sec
1809 * ... and fix the timestamp format ...
1810
18110.9.2:
1812 * ISO 8601 timestamps
1813 * Bugfix in sh_utmp (timestring overwrite)
1814 * don't use siginfo_t on Linux (garbage as of 2.2.14)
1815 * check for Linux capabilities bug when dropping root
1816 * include README for gcc compiler bug (pointed out by A. Piesk)
1817 * explicitely set -fno-strength-reduce with gcc
1818 * fixed ignoring missing files with the IgnoreAll policy
1819
18200.9.1:
1821 * more ext2flags (breaks backward database compatibility on Linux)
1822 * IgnoreAll policy modified - missing/added files reported with
1823 SeverityIgnoreAll (to handle files that may or may not be present)
1824 * Check all files, not only regular ones
1825 (bug in sh_files, originally introduced because checksum of
1826 regular files only is computed)
1827
18280.9:
1829 * use O_NOATIME if supported
1830 * --with-nocl takes argument (PW to re-enable CL parsing)
1831 * no daemon mode if initializing database
1832 * fixed segfault in yule with 'unknown file type' request
1833 * enlarged MAX_GLOBS 24 -> 32 and made the array linear
1834 * server uses last registry entry for any given client now
1835 * deploy.sh script to deploy clients to remote hosts
1836 * enhanced signal handling: SIGUSR1/SIGUSR2/SIGABRT/SIGQUIT/SIGHUP
1837 * allow y/Y/n/N for login monitoring (in addition to 0/1)
1838 * external logging scripts/programs
1839 * trustfile.c: define STICKY on Linux
1840 * reset signal mask when initializing
1841 * EINTR_RETRY wrapper
1842 * slib: sl_read, sl_write EINTR update
1843 * use sstrip when installing
1844 * more compact database format (breaks backward database compatibility)
1845 * larger download packets
1846 * TcpFlags unsigned char
1847 * cast to (char *) head in write_port
1848 * m(un)lock cast to (char *)
1849 * (1 << 31) --> (1UL << 31)
1850 * support e2fs attributes on Linux
1851 * fixes for AIX and Solaris native compilers
1852 * fixed Makefile for non-GNU make (pattern rule --> suffix rule)
1853
18540.8.1:
1855 * fixed 'is_numeric()' return value
1856
18570.8:
1858 * added option for static compilation
1859 * added option for stealth with non-hidden config file
1860 * added option for disabling command line parsing
1861 * all options can be set in the configuration file now
1862 * stealth: xor strings in database file
1863 * fixed bug in mailer code ([] in HELO)
1864 * print timestamp when asking for key
1865 * 'micro' stealth mode (no hidden configuration file)
1866 * simplified slib
1867 * int->long for uids/gids in trustfile
1868 * moved mailkey from data to code
1869 * shell script for entropy (stronger default key)
1870 * general code cleanup
1871 * better error checking in client/server code
1872 * detect out-of-sync messages
1873 * check state across protocol passes in server
1874 * make sure authentication is mutual
1875 * file download to client
1876 * reserve six file descriptors in server
1877 * mlock queue buffer if LOG_KEY
1878 * improved robustness in bignum (don't fail on free())
1879 * per-directory recursion depths
1880 * RFC821 compliance: empty line at end of header, To field, Date field
1881 * RFC821 compliance: make e-mail transfer relieable
1882 * fix detection of hardlink changes
1883 * checksum verification for calling gpg/pgp
1884 * CL option '-S' not required for server-only binary
1885 * eliminate CL options that may leak privileged information
1886 if the program is SUID
1887 * skip leading white space in configuration file
1888 * allow nested conditionals in configuration file
1889 * allow whitespace before and after '=' in configuration file
1890 * don't leak file descriptors to child processes
1891 * make message transfer relieable
1892 * always report error on abnormal termination of connection
1893
18940.7:
1895 * support for alpha machines
1896 * stop TCP logging after exit message
1897 * limit connections in server (DoS attacks)
1898 * move string handling to slib
1899 * move file handling to slib
1900 * timestring without space
1901 * changed report format
1902 * SUID bugfix - use euid when checking logfile ownership
1903 * SUID bugfix - get root for lstat()
1904 * SUID bugfix - get root for opendir()
1905 * store number of hardlinks
1906 * send no message if polling empty queue
1907 * include tiger 64-bit implementation (portability)
1908 * codes for error conditions
1909 * mail check: handle multiple, overlapping audit trails
1910 * security fix: no append to database if SUID
1911 * fix sh_entropy.c (BUFSIZ -> BUF_ENT)
1912 * read command line before config file
1913 * PGP signing of config/database files
1914 * checksum of config file reported
1915 * checking for attributes only
1916
19170.6:
1918 * more syslogish priority specification
1919 * fixed segfault in sh_mem_check, apparently this was also
1920 the reason for the segfault in atexit()
1921 * allow for compilation with SRP authentication
1922 * fixed tiger checksum computation
1923 * fixed broken logfile verification for second and further audit trails
1924 * test program added
1925 * documentation improved
1926 * sh_forward_make_client: bug fixed in[8]->in[i]
1927 * sh_error.h: fixed missing #include <errno.h>
1928 * configure.in: fixed missing strerror() test
1929 * sh_utmp.c: check logins/logouts
1930 * check for missing files
1931 * only reset access time if necessary
1932 * O_EXCL in open()
1933 * limit environment to TZ in execve (sh_entropy.c, not used on Linux)
1934 * use trustfile() to determine whether logfile dir is trustworthy
1935 * strip head instead of tail for numerical address
1936 * store messages in fifo during log server outage
1937 * re-init session key after server outage
1938
19390.5 (21-12-1999):
1940 * added option for mail relay server
1941 * own popen() implementation in sh_entropy() (portability)
1942 * fixed error in sh_util_basename() (returned NULL for base == "/")
1943 * fixed segfault in strlcpy/strlcat (check for src == NULL)
1944 * FILENAME_MAX -> PATH_MAX (HP-UX 10.20)
1945 * use TIGER for 32-byte compilers (portability)
1946 * fixed hash function (do not include stdlib.h)
1947 * flush buffer before write in mailer code (IBM AIX 4.1)
1948 * make mailer code non-forking
1949 * cast argument of is...() to int (portability)
1950 * return() after _exit() for braindead compilers (portability)
1951 * optionally use inet_addr (portability)
1952 * check for broken mlock() (HP-UX 10.20)
1953 * minor code cleanups
1954 * fixed incorrect size of munlock()'ed memory in sh_error_string()
1955 * fixed a buffer overflow in the error printing routine
1956 * fixed a buffer overflow in sh_util_safe_name ()
1957 * implement SRP session key exchange
1958 * implement client/server facility
1959 * implement @host/@end construct in configuration file
1960 * preferably use uname(), and do gethostbyname() for FQDN
1961 * make vernam cipher base numeric
1962 * make OnlyStderr private in sh_error
1963 * test -e "/dev/random" --> test -r "/dev/random" (portability)
1964 * check for libsocket (portability)
1965 * add #defines for IPPORT_SMTP, IPPORT_TIMESERVER (portability)
1966 * eliminate superfluous /proc test
1967 * some unreachable code removed
1968 * cast to (byte*) replaced by cast to (word64*) in sh_tiger_hash()
1969 * check for setresuid() if no seteuid() (HP-UX 10.20)
1970
19710.4 (09-11-1999):
1972 * make sure output from /dev/random has no NULL's
1973 * one-time pad encryption for emailed keys
1974 (better than nothing ...)
1975
19760.3 (04-11-1999):
1977 * logfile readable for group
1978 * verify signatures for any file
1979 * signature block in tarball
1980 * use select() in time server routine
1981 * better protection for session keys (mlock)
1982
19830.2:
1984 * fixed incorrect man page
1985 * fixed incorrect example rc file
1986 * recursive error logging should work now
1987
19880.1:
1989 * initial release -- on Samhain 1999, of course
1990
1991development start:
1992 * probably 29-06-1999
1993
Note: See TracBrowser for help on using the repository browser.