]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc/mqueue: enforce hard limits
authorDoug Ledford <dledford@redhat.com>
Thu, 8 Dec 2011 04:33:16 +0000 (15:33 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Dec 2011 06:43:04 +0000 (17:43 +1100)
commit0f3477c7de95fea51d077d41ab87ff778a1dfaef
treeea11cb17082bd7e47de3db112d5c2dbb906e6881
parenteb61eee13733a6d1ccfbd66489cbde2664432720
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