diff --git a/man5/proc.5 b/man5/proc.5 index 2481cbb49..8f3f1fed2 100644 --- a/man5/proc.5 +++ b/man5/proc.5 @@ -1063,9 +1063,12 @@ argument given to .BR mq_open (3). The default and minimum value for .I msg_max -is 10; the upper limit is -.IR "(131072 / sizeof(void\ *))" +is 10; the upper limit is HARD_MAX: +.IR "(131072\ /\ sizeof(void\ *))" (32768 on Linux/86). +This limit is ignored for privileged processes +.RB ( CAP_SYS_RESOURCE ), +but the HARD_MAX ceiling is nevertheless imposed. .TP .I /proc/sys/fs/mqueue/msgsize_max This file can be used to view and change the ceiling on the @@ -1078,10 +1081,15 @@ The default and minimum value for .I msgsize_max is 8192 bytes; the upper limit is INT_MAX (2147483647 on Linux/86). +This limit is ignored for privileged processes +.RB ( CAP_SYS_RESOURCE ). .TP .I /proc/sys/fs/mqueue/queues_max This file can be used to view and change the system-wide limit on the number of message queues that can be created. +Only privileged processes +.RB ( CAP_SYS_RESOURCE ) +can create new message queues once this limit has been reached. The default value for .I queues_max is 256; it can be changed to any value in the range 0 to INT_MAX.