Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | #ifndef _ASM_GENERIC_RESOURCE_H |
| 3 | #define _ASM_GENERIC_RESOURCE_H |
| 4 | |
David Howells | 8a1ab31 | 2012-10-04 18:20:15 +0100 | [diff] [blame] | 5 | #include <uapi/asm-generic/resource.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | |
| 8 | /* |
| 9 | * boot-time rlimit defaults for the init task: |
| 10 | */ |
| 11 | #define INIT_RLIMITS \ |
| 12 | { \ |
| 13 | [RLIMIT_CPU] = { RLIM_INFINITY, RLIM_INFINITY }, \ |
| 14 | [RLIMIT_FSIZE] = { RLIM_INFINITY, RLIM_INFINITY }, \ |
| 15 | [RLIMIT_DATA] = { RLIM_INFINITY, RLIM_INFINITY }, \ |
James Hogan | ffe6902 | 2014-05-01 15:05:07 +0100 | [diff] [blame] | 16 | [RLIMIT_STACK] = { _STK_LIM, RLIM_INFINITY }, \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | [RLIMIT_CORE] = { 0, RLIM_INFINITY }, \ |
| 18 | [RLIMIT_RSS] = { RLIM_INFINITY, RLIM_INFINITY }, \ |
| 19 | [RLIMIT_NPROC] = { 0, 0 }, \ |
Tim Gardner | 0ac1ee0 | 2011-05-24 17:13:05 -0700 | [diff] [blame] | 20 | [RLIMIT_NOFILE] = { INR_OPEN_CUR, INR_OPEN_MAX }, \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | [RLIMIT_MEMLOCK] = { MLOCK_LIMIT, MLOCK_LIMIT }, \ |
| 22 | [RLIMIT_AS] = { RLIM_INFINITY, RLIM_INFINITY }, \ |
| 23 | [RLIMIT_LOCKS] = { RLIM_INFINITY, RLIM_INFINITY }, \ |
| 24 | [RLIMIT_SIGPENDING] = { 0, 0 }, \ |
| 25 | [RLIMIT_MSGQUEUE] = { MQ_BYTES_MAX, MQ_BYTES_MAX }, \ |
Matt Mackall | e43379f | 2005-05-01 08:59:00 -0700 | [diff] [blame] | 26 | [RLIMIT_NICE] = { 0, 0 }, \ |
| 27 | [RLIMIT_RTPRIO] = { 0, 0 }, \ |
Peter Zijlstra | 78f2c7d | 2008-01-25 21:08:27 +0100 | [diff] [blame] | 28 | [RLIMIT_RTTIME] = { RLIM_INFINITY, RLIM_INFINITY }, \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | } |
| 30 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | #endif |