Opens auditlog files and directories with the correct mode

Respecting the directives: SecAuditLogStorageDir and SecAuditLogFileMode
This commit is contained in:
Felipe Zimmerle
2015-07-10 18:38:12 -03:00
parent c9620ac50f
commit 5e33a1a3c4
7 changed files with 36 additions and 20 deletions

View File

@@ -18,9 +18,6 @@
#ifdef __cplusplus
#include <string>
#include <iostream>
#include <sstream>
#include <fstream>
#endif
#include "modsecurity/assay.h"
@@ -32,7 +29,7 @@ namespace ModSecurity {
class AuditLog;
/** @ingroup ModSecurity_CPP_API */
class AuditLogWriter : public std::ofstream {
class AuditLogWriter {
public:
explicit AuditLogWriter(AuditLog *audit)
: m_audit(audit) { }