I'm using Linux POSIX mqueue implementation, and I have a problem. For current kernel, the max message size is 1MB, but I need to have no limit.
man mq_overview
says that if the process is privileged (a process that has CAP_SYS_RESOURCE
capability) it has no limits.
I thought that a process executed by root was already privileged, but I'm still getting "message too long" error (my message has 2MB).
How can I add CAP_SYS_RESOURCE
capability to the process?