Ed Maste 2216c6933c Disable connectat/bindat with AT_FDCWD in capmode
Previously it was possible to connect a socket (which had the
CAP_CONNECT right) by calling "connectat(AT_FDCWD, ...)" even in
capabilties mode.  This combination should be treated the same as a call
to connect (i.e. forbidden in capabilities mode).  Similarly for bindat.

Disable connectat/bindat with AT_FDCWD in capabilities mode, fix up the
documentation and add tests.

PR:		222632
Submitted by:	Jan Kokemüller <jan.kokemueller@gmail.com>
Reviewed by:	Domagoj Stolfa
MFC after:	1 week
Relnotes:	Yes
Differential Revision:	https://reviews.freebsd.org/D15221
2018-04-30 17:31:06 +00:00
..
2018-04-27 15:16:34 +00:00
2018-02-14 00:12:03 +00:00
2018-04-26 12:23:31 +00:00
2018-04-11 17:28:24 +00:00
2018-04-27 15:50:22 +00:00
2018-03-24 21:30:24 +00:00
2018-04-26 19:23:19 +00:00