projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
novi upstream verzije 2.8.3
[ossec-hids.git]
/
src
/
rootcheck
/
check_rc_sys.c
diff --git
a/src/rootcheck/check_rc_sys.c
b/src/rootcheck/check_rc_sys.c
index
1e1761f
..
0ce94db
100755
(executable)
--- a/
src/rootcheck/check_rc_sys.c
+++ b/
src/rootcheck/check_rc_sys.c
@@
-357,7
+357,7
@@
int read_sys_dir(char *dir_name, int do_read)
notify_rk(ALERT_ROOTKIT_FOUND, op_msg);
_sys_errors++;
}
notify_rk(ALERT_ROOTKIT_FOUND, op_msg);
_sys_errors++;
}
- #elif Darwin
+ #elif Darwin || FreeBSD
if(strncmp(dir_name, "/dev", strlen("/dev")) != 0)
{
notify_rk(ALERT_ROOTKIT_FOUND, op_msg);
if(strncmp(dir_name, "/dev", strlen("/dev")) != 0)
{
notify_rk(ALERT_ROOTKIT_FOUND, op_msg);
@@
-478,7
+478,7
@@
void check_rc_sys(char *basedir)
(ftell(_suid) == 0)?"":
" rootcheck-suid-files.txt (list of suid files)");
(ftell(_suid) == 0)?"":
" rootcheck-suid-files.txt (list of suid files)");
- notify_rk(ALERT_SYSTEM_ERROR, op_msg);
+ notify_rk(ALERT_SYSTEM_ERR, op_msg);
}
if(_wx)
}
if(_wx)