Mercurial > dovecot > core-2.2
changeset 22946:12c7ddbeae92
plugins/old-stats: Remove restrict_access_set_dumpable calls from process_io_open().
proc_io_fd is opened in preinit(), while process have root access, so
restrict_access_set_dumpable() calls are not needed.
author | Sergey Kitov <sergey.kitov@open-xchange.com> |
---|---|
date | Thu, 26 Apr 2018 09:48:39 +0300 |
parents | 6d6ae8f334f3 |
children | d5b44ec763b0 |
files | src/plugins/stats/mail-stats-fill.c |
diffstat | 1 files changed, 0 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/stats/mail-stats-fill.c Wed Apr 18 13:30:50 2018 +0300 +++ b/src/plugins/stats/mail-stats-fill.c Thu Apr 26 09:48:39 2018 +0300 @@ -2,7 +2,6 @@ #include "lib.h" #include "time-util.h" -#include "restrict-access.h" #include "stats-plugin.h" #include "mail-stats.h" @@ -47,9 +46,6 @@ if (proc_io_disabled) return -1; - bool dumpable = restrict_access_get_dumpable(); - if (!dumpable) - restrict_access_set_dumpable(TRUE); proc_io_fd = open(PROC_IO_PATH, O_RDONLY); if (proc_io_fd == -1 && errno == EACCES) { /* kludge: if we're running with permissions temporarily @@ -65,8 +61,6 @@ } errno = EACCES; } - if (!dumpable) - restrict_access_set_dumpable(FALSE); if (proc_io_fd == -1) { if (errno != ENOENT) i_error("open(%s) failed: %m", PROC_IO_PATH);