Changeset 91


Ignore:
Timestamp:
Feb 17, 2007, 9:47:38 PM (18 years ago)
Author:
rainer
Message:

Slightly improved fix for samhain_hide module.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r90 r91  
    17441744           # -- NEW --
    17451745           kernel_version=`uname -r | sed s,2.6.*,LINUX26,`
    1746            kernel_numeric=`uname -r | sed 's%-%.%' | sed 's%_%.%' | awk -F. '{ print $1*100000+$2*1000+$3 }'`
     1746           kernel_numeric=`uname -r | sed 's%-%.%g' | sed 's%_%.%g' | awk -F. '{ print $1*65536+$2*256+$3 }'`
    17471747           AC_DEFINE_UNQUOTED(SH_KERNEL_NUMERIC, ${kernel_numeric}, [Kernel number])
    17481748
  • trunk/docs/FAQ.html

    r61 r91  
    3131div.warnblock {
    3232        background: #b6c5f2; color: #000;
     33        background: #ffffcc; color: #000;
    3334        margin: 1em; padding: 0 1em 0 1em;
    3435        border-width: 1px;
     
    129130<br><center><h2>Rainer Wichmann</h2></center>
    130131<hr>
    131 <p><i>FAQ Revised: Monday 11 September 2006 22:18:54</i></p>
     132<div class="warnblock">
     133<ul>
     134  <li>If you encounter problems after installing samhain, disable daemon
     135      mode and run it in the foreground with
     136      <tt>samhain --foreground [more options]</tt> for debugging.</li>
     137  <li>If you have problems getting client/server mode to work, please check
     138      the <a href="http://www.la-samhna.de/samhain/HOWTO-client+server-troubleshooting.html">HOWTO client+server troubleshooting</a> document.</li>
     139</ul>
     140</div>
     141<p><i>FAQ Revised: Monday 12 February 2007 23:06:43</i></p>
    132142<hr><h2>Table of Contents</h2>
    133143<dl>
  • trunk/docs/HOWTO-client+server-troubleshooting.html

    r89 r91  
    139139      stop the server, then run it in the foreground with
    140140      <tt>yule -p info --foreground</tt></li>
     141</ul>
    141142</div>
    142143<p>
  • trunk/src/samhain_hide.c

    r90 r91  
    119119/* The configure options (#defines) for the Kernel
    120120 */
    121 #if SH_KERNEL_NUMERIC >= 206019
     121/* 2.6.19 (((2) << 16) + ((6) << 8) + (19)) */
     122#define SH_KERNEL_MIN 132627
     123
     124#if SH_KERNEL_NUMERIC >= SH_KERNEL_MIN
    122125#include <linux/autoconf.h>
    123126#else
     
    169172#include <linux/smp_lock.h>
    170173
    171 #if SH_KERNEL_NUMERIC >= 206019
     174#if SH_KERNEL_NUMERIC >= SH_KERNEL_MIN
    172175#include <linux/mutex.h>
    173176#endif
     
    783786    spinlock_t * modlist_lock = (spinlock_t * ) SH_MODLIST_LOCK;
    784787#endif
    785 #if SH_KERNEL_NUMERIC >= 206019
     788#if SH_KERNEL_NUMERIC >= SH_KERNEL_MIN
    786789    struct mutex * module_mutex = (struct mutex *) SH_MODLIST_MUTEX;
    787790#endif
     
    789792    struct module *mod;
    790793
    791 #if SH_KERNEL_NUMERIC >= 206019
     794#if SH_KERNEL_NUMERIC >= SH_KERNEL_MIN
    792795    mutex_lock(module_mutex);
    793796#endif
     
    807810#endif
    808811    }
    809 #if SH_KERNEL_NUMERIC >= 206019
     812#if SH_KERNEL_NUMERIC >= SH_KERNEL_MIN
    810813      mutex_unlock(module_mutex);
    811814#endif
  • trunk/test/testcompile.sh

    r75 r91  
    4545
    4646    if [ "x$3" = "xdebug" ]; then memcheck=debug; else memcheck=simple; fi
    47     if [ -f ../sm_scripts/smatch.pm ]; then
     47    if [ -f ../../static/sm_scripts/smatch.pm ]; then
    4848        (
    49             cd ../sm_scripts;
     49            cd ../../static/sm_scripts;
    5050           
    5151            for i in ${CDIR}/*.c.sm ; do
Note: See TracChangeset for help on using the changeset viewer.