Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_GENERIC_RESOURCE_H |
| 2 | #define _ASM_GENERIC_RESOURCE_H |
| 3 | |
David Howells | 8a1ab31 | 2012-10-04 18:20:15 +0100 | [diff] [blame] | 4 | #include <uapi/asm-generic/resource.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 }, \ |
James Hogan | ffe6902 | 2014-05-01 15:05:07 +0100 | [diff] [blame] | 15 | [RLIMIT_STACK] = { _STK_LIM, RLIM_INFINITY }, \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | [RLIMIT_CORE] = { 0, RLIM_INFINITY }, \ |
| 17 | [RLIMIT_RSS] = { RLIM_INFINITY, RLIM_INFINITY }, \ |
| 18 | [RLIMIT_NPROC] = { 0, 0 }, \ |
Tim Gardner | 0ac1ee0 | 2011-05-24 17:13:05 -0700 | [diff] [blame] | 19 | [RLIMIT_NOFILE] = { INR_OPEN_CUR, INR_OPEN_MAX }, \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 }, \ |
Matt Mackall | e43379f | 2005-05-01 08:59:00 -0700 | [diff] [blame] | 25 | [RLIMIT_NICE] = { 0, 0 }, \ |
| 26 | [RLIMIT_RTPRIO] = { 0, 0 }, \ |
Peter Zijlstra | 78f2c7d | 2008-01-25 21:08:27 +0100 | [diff] [blame] | 27 | [RLIMIT_RTTIME] = { RLIM_INFINITY, RLIM_INFINITY }, \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | } |
| 29 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | #endif |