freebsd-dev/sys/contrib
Mark Johnston 991666adc7 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 Apply fixes in ena-com 2018-05-10 09:25:51 +00:00
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 MFV: libb2: use native calls for secure memory clearance 2018-03-27 14:55:01 +00:00
libfdt MFV r328490: Update libfdt to github:f1879e1 2018-01-27 21:25:45 +00:00
libnv Ensure that libnv can be used when kern.trap_enotcap=1. 2018-11-13 20:07:55 +00:00
libsodium Bring in libsodium to sys/contrib 2018-08-17 00:23:50 +00:00
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