Changeset 307
- Timestamp:
- Dec 3, 2010, 10:44:38 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/Changelog
r305 r307 1 1 2.8.1: 2 * Document handling of missing files with secondary schedule 2 3 * Fix incorrect handling of missing files when secondary schedule 3 4 is used (reported by Sergey) … … 12 13 reported by M. El Nahass (time.h missing in src/sh_login_track.c) 13 14 14 2.8.0 :15 2.8.0 (01-11-2010): 15 16 * Support IPv6 16 17 * Add registry checking 17 18 * Use auditd records to find out who did it 18 19 19 2.7.2c :20 2.7.2c (23-09-2010): 20 21 * Fix uppercase hostname problem in client/server communication 21 22 22 23 23 2.7.2b :24 2.7.2b (05-09-2010): 24 25 * Fix compile errors on Solaris 10 (reported by A. Saheba) 25 26 26 2.7.2a :27 2.7.2a (23-08-2010): 27 28 * rewrote rijndaelKeySched() in a more conservative way to fix 28 29 compile problem on SLES 11. 29 30 30 2.7.2 :31 2.7.2 (16-08-2010): 31 32 * sh_utils.c: fixed an endianess issue that prevented cross-verification 32 33 of email signatures (reported by A. Zangerl) … … 42 43 Need to provide a dummy argp[]. 43 44 44 2.7.1 :45 2.7.1 (07-06-2010): 45 46 * samhain_kmem.c: fix compile problems 46 47 * fix problems with config file parser: increase max. line length, -
trunk/docs/HOWTO-client+server-troubleshooting.html
r91 r307 135 135 <ul> 136 136 <li>Almost all problems can only be diagnosed correctly by checking the 137 <b>server</b> logs</li> 138 <li>If the server does not write logs, <b>fix this first</b>. For debugging, 139 stop the server, then run it in the foreground with 140 <tt>yule -p info --foreground</tt></li> 137 <b>server logs</b>.</li> 138 <li> 139 If the server does not write logs, <b>fix this first</b>. For debugging, 140 stop the server, then run it in the foreground with 141 <tt>yule -p info --foreground</tt> 142 <ul> 143 <li> 144 By default, the server logs to the file 145 <tt>/var/log/yule/yule_log</tt>, and since the server drops 146 root privileges on startup, the directory <tt>/var/log/yule</tt> 147 must be writable for the nonprivileged user the server runs 148 as (the first existing out of: yule, daemon, nobody). 149 </li> 150 <li> 151 Logging to the logfile must be enabled in the 152 <tt>/etc/yulerc</tt> config file (e.g. LogSeverity=mark, or 153 LogSeverity=info for enhanced verbosity). 154 </li> 155 </ul> 156 </li> 141 157 </ul> 142 158 </div> … … 257 273 <p> 258 274 <p> 259 This does not work for a number of people because (1) the 260 <tt>/etc/hosts</tt> file on the client machine has errors 261 (yes, there are plenty machines with a completely 262 messed up <tt>/etc/hosts</tt> file), (2) the 263 server cannot resolve the client address because the local DNS is 264 f***ed up, or (3) the client machine has multiple network interfaces, and 265 the interface used is not the one the client name resolves to. 266 </p> 267 268 <p> 275 This does not work for a number of people because 276 <ol> 277 <li> 278 the 279 <tt>/etc/hosts</tt> file on the client machine has errors 280 (yes, there are plenty machines with a completely 281 messed up <tt>/etc/hosts</tt> file), 282 </li> 283 <li> 284 the 285 server cannot resolve the client address because the local DNS is 286 misconfigured, or 287 </li> 288 <li> 289 the client machine has multiple network interfaces, and 290 the interface used is not the one the client name resolves to. 291 </li> 292 </ol> 293 </p> 294 295 <p> 269 296 If the client uses the wrong interface on a multi-interface machine, 270 297 there is a config file option … … 272 299 that allows to choose the interface the client will use for 273 300 outgoing connections. 274 275 301 </p> 302 <p> 276 303 If you want to download the config file from the server, you 277 304 should instead use the corresponding command line option 278 305 <tt>--bind-address=</tt><i>IP address</i> 279 306 to select the interface. 280 </p> 281 282 <p> 283 If you encounter problems, you may (1) fix your 284 <tt>/etc/hosts</tt> file(s), (2) fix your local DNS, or 285 (3) switch to the second method. 286 </p> 287 <p> 288 Errors in name resolving/cross-checking can be avoided by setting a 289 very low severity (lower than the logging threshold), e.g. 290 </p> 291 <p> 292 <tt>SeverityLookup=</tt><i>debug</i> 293 </p> 294 <p> 295 in the <i>Misc</i> section of the server configuration, 296 if you prefer running <i>unsafe</i> at any speed 297 instead of fixing the problem (you have been warned). Doing so will 298 allow an attacker to pose as the client. 307 </p> 308 309 <p> 310 If you encounter problems, you may (1) fix your 311 <tt>/etc/hosts</tt> file(s), (2) fix your local DNS, or 312 (3) switch to the second method. 313 </p> 314 <p> 315 Error messages related to name resolving/cross-checking can be 316 suppressed by setting a 317 very low severity (lower than the logging threshold), e.g. 318 </p> 319 <p> 320 <tt>SeverityLookup=</tt><i>debug</i> 321 </p> 322 <p> 323 in the <i>Misc</i> section of the server configuration, 324 if you prefer running <i>unsafe</i> at any speed 325 instead of fixing the problem (you have been warned). Doing so will 326 allow an attacker to pose as the client. 299 327 </p> 300 328 </li> … … 325 353 <p> 326 354 The client does <i>not</i> tell the server the path to the requested 327 file - it just requests a config or a database file. It's entirely the 355 file - it just tells the <em>type</em> of the file, i.e. 356 either a configuration file or a database file. It is entirely the 328 357 responsibility of the server to locate the correct file and send it. 329 358 </p> … … 356 385 To fix: put the file in the correct location, make sure the permissions 357 386 are ok. 387 <ul> 388 <li> 389 Note that <em>the server drops root privileges at startup</em> and 390 runs as an unprivileged user (the first existing out of: 391 yule, daemon, nobody). 392 </li> 393 <li> 394 Also remember that to access a file, at least execute permission is required 395 <em>for every directory in the path</em>. 396 </li> 397 </ul> 358 398 </p> 359 399 -
trunk/docs/HOWTO-samhain-on-windows.html
r297 r307 278 278 the Cygwin filesystem view, i.e. <tt>/cygdrive/c/...</tt>, otherwise 279 279 samhain may not work from a pure DOS shell, and may not run as a Windows 280 service .280 service [Rainer Wichmann]. 281 281 </p> 282 282 </div> … … 399 399 </li> 400 400 </ul> 401 <div class="block"> 402 <p> 403 It seems that start/stop/restart the service does not work if samhain 404 is configured to run as a daemon, because the Windows service manager 405 cannot track the forked daemon process. 406 </p> 407 <p>Therefore, if you run Samhain as a Windows service, it might be better 408 to configure it as a 'normal' process which does not fork a daemon: 409 <ul> 410 <li> 411 Set 'Daemon = no' in the samhainrc configuration file. 412 </li> 413 <li> 414 Edit the key HKEY_LOCAL_MACHINE->SYSTEM->CurrentControlSet->Services->Samhain->Parameters to add a string value named 'AppParameters', with 415 the value '--forever'. 416 </li> 417 </ul> 418 [Rainer Wichmann]. 419 </p> 420 </div> 401 421 <p> 402 422 Also see <a href="http://support.microsoft.com/kb/q137890/">http://support.microsoft.com/kb/q137890/</a> for information regarding the creation of a -
trunk/src/samhain.c
r305 r307 2024 2024 if (flag_check_2 == 1 || FileSchedTwo == NULL) 2025 2025 { 2026 fprintf(stderr, "FIXME check unvisited\n");2027 2026 TPT((0, FIL__, __LINE__, _("msg=<Check for missing files.>\n"))) 2028 2027 sh_hash_unvisited (ShDFLevel[SH_ERR_T_FILE]); -
trunk/src/sh_calls.c
r295 r307 226 226 } while (val_retry < 0 && errno == EINTR); 227 227 228 *addrlen = (int) my_addrlen;229 228 error = errno; 230 229 if (val_retry < 0) { … … 237 236 sh_ipvx_save(serv_addr, ss.ss_family, (struct sockaddr *) &ss); 238 237 238 *addrlen = (int) my_addrlen; 239 239 SL_RETURN(val_retry, _("retry_accept")); 240 240 } -
trunk/src/sh_files.c
r305 r307 377 377 if (S_FALSE == sh_ignore_chk_del(ptr->name)) 378 378 { 379 fprintf(stderr, "FIXME 1 %s, %d\n", ptr->name, ptr->is_reported);380 379 if (0 != hashreport_missing(ptr->name, 381 380 (ptr->class == SH_LEVEL_ALLIGNORE) ? … … 436 435 if (S_FALSE == sh_ignore_chk_del(ptr->name)) 437 436 { 438 fprintf(stderr, "FIXME 2 %s, %d\n", ptr->name, ptr->is_reported);439 437 if (0 != hashreport_missing(ptr->name, 440 438 (ptr->class == SH_LEVEL_ALLIGNORE) ? … … 1292 1290 if (S_FALSE == sh_ignore_chk_del(ptr->name)) 1293 1291 { 1294 fprintf(stderr, "FIXME 2 %s, %d\n", ptr->name, ptr->is_reported);1295 1292 if (0 != hashreport_missing(ptr->name, 1296 1293 (ptr->class == SH_LEVEL_ALLIGNORE) ? -
trunk/src/sh_forward.c
r295 r307 5028 5028 #endif 5029 5029 5030 int sock = -1; 5030 /* Use volatile to circumvent a gcc4 problem on RH/CentOS 4.8 (?) */ 5031 volatile int sock = -1; 5031 5032 sh_conn_t * cx; 5032 5033 fd_set readset; -
trunk/src/sh_hash.c
r305 r307 688 688 689 689 goto end; 690 SL_RET0(_("sh_hash_remove"));691 690 #else 692 691 SET_SH_FFLAG_REPORTED(p->fflags);
Note:
See TracChangeset
for help on using the changeset viewer.