diff options
| author | Chris Wright <chrisw@osdl.org> | 2004-06-17 17:56:56 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-06-17 17:56:56 -0700 |
| commit | faaa0febefc3de14da204284d79dd60c59a140b2 (patch) | |
| tree | 6b9152ba97b51af26908b75bf0c652fa3b57af89 /include/asm-mips | |
| parent | db49b0f961a5704409acb5145ec7cb134be1b450 (diff) | |
[PATCH] RLIM: add rlimit entry for POSIX mqueue allocation
Add an rlimit entry to control the maximum number of bytes a user can allocate
to a POSIX mqueue.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-mips')
| -rw-r--r-- | include/asm-mips/resource.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-mips/resource.h b/include/asm-mips/resource.h index 83ab5709e0e9..2453e0d1c35c 100644 --- a/include/asm-mips/resource.h +++ b/include/asm-mips/resource.h @@ -24,8 +24,9 @@ #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */ #define RLIMIT_LOCKS 10 /* maximum file locks held */ #define RLIMIT_SIGPENDING 11 /* max number of pending signals */ +#define RLIMIT_MSGQUEUE 12 /* maximum bytes in POSIX mqueues */ -#define RLIM_NLIMITS 12 /* Number of limit flavors. */ +#define RLIM_NLIMITS 13 /* Number of limit flavors. */ #ifdef __KERNEL__ @@ -56,6 +57,7 @@ { RLIM_INFINITY, RLIM_INFINITY }, \ { RLIM_INFINITY, RLIM_INFINITY }, \ { MAX_SIGPENDING, MAX_SIGPENDING }, \ + { MQ_BYTES_MAX, MQ_BYTES_MAX }, \ } #endif /* __KERNEL__ */ |
