numam-dpdk/drivers/bus/pci
Stephen Hemminger c530aa78e3 bus/pci: fix TOCTOU for sysfs access
Using access followed by open causes a static analysis warning
about Time of check versus Time of use. Also, access() and
open() have different UID permission checks.

This is not a serious problem; but easy to fix by using errno instead.

Coverity issue: 300870
Fixes: 4a928ef9f6 ("bus/pci: enable write combining during mapping")
Cc: stable@dpdk.org

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: David Marchand <david.marchand@redhat.com>
2019-06-14 16:33:56 +09:00
..
bsd replace snprintf with strlcpy without adding extra include 2019-04-04 22:45:54 +02:00
linux bus/pci: fix TOCTOU for sysfs access 2019-06-14 16:33:56 +09:00
Makefile drivers: remove Linux EAL from include path 2019-04-04 22:06:16 +02:00
meson.build build: increase readability via shortcut variables 2019-04-17 18:09:52 +02:00
pci_common_uio.c bus/pci: support hot-unplug handler 2018-10-15 22:16:48 +02:00
pci_common.c bus: introduce device level DMA memory mapping 2019-03-30 16:48:56 +01:00
pci_params.c devargs: rename enum items with singular form 2018-10-11 13:57:29 +02:00
private.h bus/pci: support hot-unplug handler 2018-10-15 22:16:48 +02:00
rte_bus_pci_version.map bus/pci: fix namespace of sysfs path function 2017-11-07 00:44:10 +01:00
rte_bus_pci.h bus: introduce device level DMA memory mapping 2019-03-30 16:48:56 +01:00