According to the documentation (and how aide / tripwire
has worked in the past), @@ifhost checks whether the
hostname, without the domain name, marches.
The ifhost logic in do_ifxhost() in commandconf.c fails
to strip off any .domain from the buffer used by
gethostname(). Note that in many systems, the hostname
is set to a fully qualified domain name, so this strip
is needed prior to the token compare.
Also, the malloc for the buffer used by gethostame is
not checked for a return of NULL.
This patch fixes this problem
Richard van den Berg
None
None
Public
|
Date: 2006-02-14 12:18:56 PST Logged In: YES |
|
Date: 2006-02-12 23:03:59 PST Logged In: YES |
| Filename | Description | Download |
|---|---|---|
| commandconf.c.ptch | patch to fix @@ifhost and @@ifnhost | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2006-02-14 12:18:56 PST | rvdb |
| assigned_to | nobody | 2006-02-14 12:18:56 PST | rvdb |
| close_date | - | 2006-02-14 12:18:56 PST | rvdb |
| File Added | 167197: commandconf.c.ptch | 2006-02-12 23:04:52 PST | lcn2 |
| priority | 5 | 2006-02-12 23:03:59 PST | lcn2 |
| summary | fix of @@ifhost and @@ifnhost: | 2006-02-12 23:03:59 PST | lcn2 |