aboutsummaryrefslogtreecommitdiffstats
path: root/src/logger.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-11-30 19:14:26 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-11-30 19:14:26 +0300
commit997d0bc5a657aa481166d58aa4cb2620ba6b67c0 (patch)
treee4e853e902d5392e588a2a34dba4c92ef3eb8f44 /src/logger.h
parent632e13627f8ad4ebf632a8b616c62dc6622d375e (diff)
downloadrspamd-997d0bc5a657aa481166d58aa4cb2620ba6b67c0.tar.gz
rspamd-997d0bc5a657aa481166d58aa4cb2620ba6b67c0.zip
* Fix reopening of logs in case of privilleged run.
Diffstat (limited to 'src/logger.h')
-rw-r--r--src/logger.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/logger.h b/src/logger.h
index f44dc56d9..e25d6bfff 100644
--- a/src/logger.h
+++ b/src/logger.h
@@ -28,6 +28,20 @@ void close_log (rspamd_logger_t *logger);
* Close and open log again
*/
gint reopen_log (rspamd_logger_t *logger);
+
+/**
+ * Open log file or initialize other structures for privileged processes
+ */
+gint open_log_priv (rspamd_logger_t *logger, uid_t uid, gid_t gid);
+/**
+ * Close log file or destroy other structures for privileged processes
+ */
+void close_log_priv (rspamd_logger_t *logger, uid_t uid, gid_t gid);
+/**
+ * Close and open log again for privileged processes
+ */
+gint reopen_log_priv (rspamd_logger_t *logger, uid_t uid, gid_t gid);
+
/**
* Set log pid
*/