]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc/mqueue: enforce hard limits
authorDoug Ledford <dledford@redhat.com>
Fri, 2 Dec 2011 03:09:13 +0000 (14:09 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 6 Dec 2011 03:57:38 +0000 (14:57 +1100)
commita33317baec1f1ee571a93b6b044bfd148b5c1e53
treef9032df249121620df79fa99530f50e14474f894
parent8b11737a140e82aea573d08d16e9c2bd1800f0ce
ipc/mqueue: enforce hard limits

In two places we don't enforce the hard limits for CAP_SYS_RESOURCE apps.
In preparation for making more reasonable hard limits, start enforcing
them even on CAP_SYS_RESOURCE.

Signed-off-by: Doug Ledford <dledford@redhat.com>
Cc: Amerigo Wang <amwang@redhat.com>
Cc: Serge E. Hallyn <serue@us.ibm.com>
Cc: Joe Korty <joe.korty@ccur.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Cc: <stable@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
ipc/mqueue.c