Approved, oprócz użycie RESTORE_ERRNO() do ustawiania errno.
authoroshogbo <oshogbo@FreeBSD.org>
Sat, 2 May 2015 17:45:52 +0000 (17:45 +0000)
committeroshogbo <oshogbo@FreeBSD.org>
Sat, 2 May 2015 17:45:52 +0000 (17:45 +0000)
commitcf66982b37ec7230cc55175c994e05c6176e8e22
treea69b34916c7078793947216a35639f78cd60366e
parent843dbc5981a1de860cdd7de6cf7aaf65c87a56ab
Approved, oprócz użycie RESTORE_ERRNO() do ustawiania errno.

Change the nvlist_recv() function to take additional argument that
specifies flags expected on the received nvlist. Receiving a nvlist with
different set of flags than the ones we expect might lead to undefined
behaviour, which might be potentially dangerous.

Update consumers of this and related functions and update the tests.

Approved by: pjd (mentor)

Update man page for nvlist_unpack, nvlist_recv, nvlist_xfer, cap_recv_nvlist
and cap_xfer_nvlist.

Reviewed by: AllanJude
Approved by: pjd (mentor)
19 files changed:
lib/libcapsicum/libcapsicum.3
lib/libcapsicum/libcapsicum.c
lib/libcapsicum/libcapsicum.h
lib/libcapsicum/libcapsicum_dns.c
lib/libcapsicum/libcapsicum_grp.c
lib/libcapsicum/libcapsicum_pwd.c
lib/libcapsicum/libcapsicum_random.c
lib/libcapsicum/libcapsicum_service.c
lib/libcapsicum/libcapsicum_sysctl.c
lib/libcasper/libcasper.c
lib/libnv/nv.3
lib/libnv/tests/nv_tests.cc
lib/libnv/tests/nvlist_send_recv_test.c
sbin/casperd/casperd.c
sbin/casperd/zygote.c
sys/dev/pci/pci_iov.c
sys/kern/subr_nvlist.c
sys/sys/nv.h
usr.sbin/iovctl/iovctl.c