Hi, im using linux posix mqueue implementation, and i got a bad situation. For current kernel, the max msg 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 im still getting "message too long" error (my msg has 2mb).
How can i "add" CAP_SYS_RESOURCE capability to the process?