Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #ifndef _ASM_GENERIC_RESOURCE_H |
2 | #define _ASM_GENERIC_RESOURCE_H | |
3 | ||
8a1ab315 | 4 | #include <uapi/asm-generic/resource.h> |
1da177e4 | 5 | |
1da177e4 LT |
6 | |
7 | /* | |
8 | * boot-time rlimit defaults for the init task: | |
9 | */ | |
10 | #define INIT_RLIMITS \ | |
11 | { \ | |
12 | [RLIMIT_CPU] = { RLIM_INFINITY, RLIM_INFINITY }, \ | |
13 | [RLIMIT_FSIZE] = { RLIM_INFINITY, RLIM_INFINITY }, \ | |
14 | [RLIMIT_DATA] = { RLIM_INFINITY, RLIM_INFINITY }, \ | |
ffe6902b | 15 | [RLIMIT_STACK] = { _STK_LIM, RLIM_INFINITY }, \ |
1da177e4 LT |
16 | [RLIMIT_CORE] = { 0, RLIM_INFINITY }, \ |
17 | [RLIMIT_RSS] = { RLIM_INFINITY, RLIM_INFINITY }, \ | |
18 | [RLIMIT_NPROC] = { 0, 0 }, \ | |
0ac1ee0b | 19 | [RLIMIT_NOFILE] = { INR_OPEN_CUR, INR_OPEN_MAX }, \ |
1da177e4 LT |
20 | [RLIMIT_MEMLOCK] = { MLOCK_LIMIT, MLOCK_LIMIT }, \ |
21 | [RLIMIT_AS] = { RLIM_INFINITY, RLIM_INFINITY }, \ | |
22 | [RLIMIT_LOCKS] = { RLIM_INFINITY, RLIM_INFINITY }, \ | |
23 | [RLIMIT_SIGPENDING] = { 0, 0 }, \ | |
24 | [RLIMIT_MSGQUEUE] = { MQ_BYTES_MAX, MQ_BYTES_MAX }, \ | |
e43379f1 MM |
25 | [RLIMIT_NICE] = { 0, 0 }, \ |
26 | [RLIMIT_RTPRIO] = { 0, 0 }, \ | |
78f2c7db | 27 | [RLIMIT_RTTIME] = { RLIM_INFINITY, RLIM_INFINITY }, \ |
1da177e4 LT |
28 | } |
29 | ||
1da177e4 | 30 | #endif |