title: How to execute a process with CAP_SYS_RESOURCE
body: <p>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.</p>
  
  <p><a href="https://linux.die.net/man/7/mq_overview" rel="nofollow noreferrer"><code>man mq_overview</code></a> says that if the process is privileged (a process that has <code>CAP_SYS_RESOURCE</code> 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).</p>
  
  <p>How can I add <code>CAP_SYS_RESOURCE</code> capability to the process?</p>