2005-04-17 02:20:36 +04:00
|
|
|
#ifndef _ASM_GENERIC_RESOURCE_H
|
|
|
|
#define _ASM_GENERIC_RESOURCE_H
|
|
|
|
|
2012-10-04 21:20:15 +04:00
|
|
|
#include <uapi/asm-generic/resource.h>
|
2005-04-17 02:20:36 +04:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* boot-time rlimit defaults for the init task:
|
|
|
|
*/
|
|
|
|
#define INIT_RLIMITS \
|
|
|
|
{ \
|
|
|
|
[RLIMIT_CPU] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
|
|
[RLIMIT_FSIZE] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
|
|
[RLIMIT_DATA] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
2014-05-01 18:05:07 +04:00
|
|
|
[RLIMIT_STACK] = { _STK_LIM, RLIM_INFINITY }, \
|
2005-04-17 02:20:36 +04:00
|
|
|
[RLIMIT_CORE] = { 0, RLIM_INFINITY }, \
|
|
|
|
[RLIMIT_RSS] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
|
|
[RLIMIT_NPROC] = { 0, 0 }, \
|
2011-05-25 04:13:05 +04:00
|
|
|
[RLIMIT_NOFILE] = { INR_OPEN_CUR, INR_OPEN_MAX }, \
|
2005-04-17 02:20:36 +04:00
|
|
|
[RLIMIT_MEMLOCK] = { MLOCK_LIMIT, MLOCK_LIMIT }, \
|
|
|
|
[RLIMIT_AS] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
|
|
[RLIMIT_LOCKS] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
|
|
[RLIMIT_SIGPENDING] = { 0, 0 }, \
|
|
|
|
[RLIMIT_MSGQUEUE] = { MQ_BYTES_MAX, MQ_BYTES_MAX }, \
|
2005-05-01 19:59:00 +04:00
|
|
|
[RLIMIT_NICE] = { 0, 0 }, \
|
|
|
|
[RLIMIT_RTPRIO] = { 0, 0 }, \
|
2008-01-25 23:08:27 +03:00
|
|
|
[RLIMIT_RTTIME] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
2005-04-17 02:20:36 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|