projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.7
[ossec-hids.git]
/
src
/
analysisd
/
makelists.c
diff --git
a/src/analysisd/makelists.c
b/src/analysisd/makelists.c
index
9299592
..
a5afd77
100644
(file)
--- a/
src/analysisd/makelists.c
+++ b/
src/analysisd/makelists.c
@@
-1,4
+1,5
@@
-/* @(#) $Id$ */
+/* @(#) $Id: ./src/analysisd/makelists.c, 2011/09/08 dcid Exp $
+ */
/* Copyright (C) 2010 Trend Micro Inc.
* All rights reserved.
/* Copyright (C) 2010 Trend Micro Inc.
* All rights reserved.
@@
-8,7
+9,7
@@
* License (version 2) as published by the FSF - Free Software
* Foundation.
*
* License (version 2) as published by the FSF - Free Software
* Foundation.
*
- * License details at the LICENSE file included with OSSEC or
+ * License details at the LICENSE file included with OSSEC or
* online at: http://www.ossec.net/en/licensing.html
*/
* online at: http://www.ossec.net/en/licensing.html
*/
@@
-16,13
+17,13
@@
/* Part of the OSSEC
* Available at http://www.ossec.net
*/
/* Part of the OSSEC
* Available at http://www.ossec.net
*/
-
+
/* ossec-analysisd.
* Responsible for correlation and log decoding.
*/
/* ossec-analysisd.
* Responsible for correlation and log decoding.
*/
-#ifdef ARGV0
- #undef ARGV0
+#ifdef ARGV0
+ #undef ARGV0
#define ARGV0 "ossec-testrule"
#endif
#define ARGV0 "ossec-testrule"
#endif
@@
-143,7
+144,7
@@
int main(int argc, char **argv)
/* Found user */
debug1(FOUND_USER, ARGV0);
/* Found user */
debug1(FOUND_USER, ARGV0);
-
+
/* Reading configuration file */
if(GlobalConf(cfg) < 0)
{
/* Reading configuration file */
if(GlobalConf(cfg) < 0)
{
@@
-151,7
+152,7
@@
int main(int argc, char **argv)
}
debug1(READ_CONFIG, ARGV0);
}
debug1(READ_CONFIG, ARGV0);
-
+
/* Setting the group */
if(Privsep_SetGroup(gid) < 0)
ErrorExit(SETGID_ERROR,ARGV0,group);
/* Setting the group */
if(Privsep_SetGroup(gid) < 0)
ErrorExit(SETGID_ERROR,ARGV0,group);
@@
-161,8
+162,8
@@
int main(int argc, char **argv)
ErrorExit(CHROOT_ERROR,ARGV0,dir);
nowChroot();
ErrorExit(CHROOT_ERROR,ARGV0,dir);
nowChroot();
-
-
+
+
/* Createing the lists for use in rules */
Lists_OP_CreateLists();
/* Createing the lists for use in rules */
Lists_OP_CreateLists();