Comment 9 for bug 1155695

Revision history for this message
Michael Kerrisk (mtk-manpages) wrote :

Arto, it's the simple fix, but before I push it further, does the attached patch fix your problem?

At this point (ii.e., since LInux 3.8), I suspect that the limit that the kernel code currently tries to enforce on queues_max is anyway meaningless. Unprivileged users can nowadays use clone(CLONE_NEWUSER|CLONE_NEWIPC) to create an arbitrary number of new IPC namespaces, each of which can be populated with queues_max MQs. So the hard limit check doesn't really limit users at all (though, as you've discovered, it does inconvenience them).