blob: 5e752b9590548448b42080151169cc7e38a1245c [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_GENERIC_RESOURCE_H
2#define _ASM_GENERIC_RESOURCE_H
3
David Howells8a1ab312012-10-04 18:20:15 +01004#include <uapi/asm-generic/resource.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
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 Hoganffe69022014-05-01 15:05:07 +010015 [RLIMIT_STACK] = { _STK_LIM, RLIM_INFINITY }, \
Linus Torvalds1da177e2005-04-16 15:20:36 -070016 [RLIMIT_CORE] = { 0, RLIM_INFINITY }, \
17 [RLIMIT_RSS] = { RLIM_INFINITY, RLIM_INFINITY }, \
18 [RLIMIT_NPROC] = { 0, 0 }, \
Tim Gardner0ac1ee02011-05-24 17:13:05 -070019 [RLIMIT_NOFILE] = { INR_OPEN_CUR, INR_OPEN_MAX }, \
Linus Torvalds1da177e2005-04-16 15:20:36 -070020 [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 Mackalle43379f2005-05-01 08:59:00 -070025 [RLIMIT_NICE] = { 0, 0 }, \
26 [RLIMIT_RTPRIO] = { 0, 0 }, \
Peter Zijlstra78f2c7d2008-01-25 21:08:27 +010027 [RLIMIT_RTTIME] = { RLIM_INFINITY, RLIM_INFINITY }, \
Linus Torvalds1da177e2005-04-16 15:20:36 -070028}
29
Linus Torvalds1da177e2005-04-16 15:20:36 -070030#endif