HEX
Server: LiteSpeed
System: Linux server.searchcove.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User: lurax (1083)
PHP: 8.3.30
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/include/dovecot/restrict-process-size.h
#ifndef RESTRICT_PROCESS_SIZE_H
#define RESTRICT_PROCESS_SIZE_H

#include <sys/time.h>
#ifdef HAVE_SYS_RESOURCE_H
#  include <sys/resource.h>
#endif

/* Restrict max. process size. */
void restrict_process_size(rlim_t bytes);
/* Restrict max. number of processes. */
void restrict_process_count(rlim_t count);
/* Set fd limit to count. */
void restrict_fd_limit(rlim_t count);

/* Get the core dump size limit. Returns 0 if ok, -1 if lookup failed. */
int restrict_get_core_limit(rlim_t *limit_r);
/* Get the process VSZ size limit. Returns 0 if ok, -1 if lookup failed. */
int restrict_get_process_size(rlim_t *limit_r);
/* Get the process count limit. Returns 0 if ok, -1 if lookup failed. */
int restrict_get_process_limit(rlim_t *limit_r);
/* Get the fd limit. Returns 0 if ok, -1 if lookup failed. */
int restrict_get_fd_limit(rlim_t *limit_r);

#endif