tags:

views:

14

answers:

1

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?

A: 

Hi bro, try the option RLIMIT_MSGQUEUE in function: int setrlimit(int resource, const struct rlimit *rlim);

man page: http://www.kernel.org/doc/man-pages/online/pages/man2/setrlimit.2.html

:)

Rodrigo Q. Saramago
I set with RLIM_INFINITY and still got "message too long" =/
Leonardo Alt