diff --git a/src/plugins/old-stats/mail-stats-fill.c b/src/plugins/old-stats/mail-stats-fill.c index 96162891ae..6477190299 100644 --- a/src/plugins/old-stats/mail-stats-fill.c +++ b/src/plugins/old-stats/mail-stats-fill.c @@ -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 @@ static int process_io_open(void) 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 @@ static int process_io_open(void) } errno = EACCES; } - if (!dumpable) - restrict_access_set_dumpable(FALSE); if (proc_io_fd == -1) { /* ignore access errors too, certain security options can prevent root access to this file when not owned by root */