From faaa0febefc3de14da204284d79dd60c59a140b2 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Thu, 17 Jun 2004 17:56:56 -0700 Subject: [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 Signed-off-by: Linus Torvalds --- include/linux/mqueue.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/linux/mqueue.h') diff --git a/include/linux/mqueue.h b/include/linux/mqueue.h index fc40b774b913..8db9d75541a6 100644 --- a/include/linux/mqueue.h +++ b/include/linux/mqueue.h @@ -21,6 +21,8 @@ #include #define MQ_PRIO_MAX 32768 +/* per-uid limit of kernel memory used by mqueue, in bytes */ +#define MQ_BYTES_MAX 819200 struct mq_attr { long mq_flags; /* message queue flags */ -- cgit v1.2.3