freebsd-skq/sys/contrib
markj 1c1781ccce Ensure that libnv can be used when kern.trap_enotcap=1.
libnv used fcntl(fd, F_GETFL) to test whether fd is a valid file
descriptor.  Aside from being racy, this check requires CAP_FCNTL
rights on fd.  Instead, use fcntl(fd, F_GETFD), which does not require
any capability rights.

Also remove some redundant fd_is_valid() checks to avoid extra system
calls; in many cases we were performing this check immediately before
dup()ing the descriptor.

Reviewed by:	cem, oshogbo (previous version)
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D17963
2018-11-13 20:07:55 +00:00
..
alpine-hal
ck Import CK as of commit 5221ae2f3722a78c7fc41e47069ad94983d3bccb. 2018-10-16 02:30:13 +00:00
cloudabi
dev MFV: r339981 2018-11-02 22:50:13 +00:00
edk2
ena-com
ipfilter/netinet The bucket index is subtracted by one at lines 2304 and 2314. When 0 it 2018-08-19 13:45:03 +00:00
libb2
libfdt
libnv Ensure that libnv can be used when kern.trap_enotcap=1. 2018-11-13 20:07:55 +00:00
libsodium
ncsw
ngatm
octeon-sdk Octeon SDK: avoid use of uninitialized variable 2018-11-09 19:17:25 +00:00
rdma/krping Add proper support for VIMAGE to krping. 2018-09-06 14:03:11 +00:00
v4l
vchiq/interface
x86emu
xz-embedded
zstd Update to Zstandard 1.3.7 2018-10-22 18:29:12 +00:00