diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-11-30 19:14:26 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-11-30 19:14:26 +0300 |
commit | 997d0bc5a657aa481166d58aa4cb2620ba6b67c0 (patch) | |
tree | e4e853e902d5392e588a2a34dba4c92ef3eb8f44 /src/logger.h | |
parent | 632e13627f8ad4ebf632a8b616c62dc6622d375e (diff) | |
download | rspamd-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.h | 14 |
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 */ |