[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ossec-dev] ossec-hids: config.c (HEAD) [dcid]



Module name:	ossec-hids
Changes by:	dcid	06/09/06 09:46:59

Modified files:
	config.c

Log message:
Description: Fixing file permissions (broken with restrictive umasks)
Reviewed by: dcid
Bug:

Index: config.c
===================================================================
RCS file: /usr/cvsroot/ossec-hids/src/analysisd/config.c,v
diff -u -r1.21 -r1.22
--- config.c	4 Sep 2006 01:38:42 -0000	1.21
+++ config.c	6 Sep 2006 12:46:59 -0000	1.22
@@ -70,6 +70,8 @@
         return(OS_INVALID);
     }
     fclose(fp);
+    /* Setting right permission */
+    chmod(DEFAULTARPATH, 0440);
     
     
     if(ReadConfig(modules, cfgfile, &Config, NULL)< 0)


OSSEC home | Main Index | Thread Index


OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.