getrlimit.2: Document role of RLIMIT_NOFILE for FD passing over UNIX sockets

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-12-16 12:25:22 +01:00
parent dc4eea68b5
commit ececfc7320
1 changed files with 12 additions and 0 deletions

View File

@ -321,6 +321,18 @@ to exceed this limit yield the error
(Historically, this limit was named
.B RLIMIT_OFILE
on BSD.)
Since Linux 4.5,
this limit also defines the maximum number of file descriptors that
an unprivileged process (one without the
.BR CAP_SYS_RESOURCE
capability) may have "in flight" to other processes,
by being passed across UNIX domain sockets.
This limit applies to the
.BR sendmsg (2)
system call.
For further details, see
.BR unix (7).
.TP
.B RLIMIT_NPROC
This is the maximum number of processes