Re: [dpdk-dev] [PATCH v2] bus/pci: fix TOCTOU issue

2019-06-14 Thread Thomas Monjalon
14/06/2019 16:16, David Marchand: > On Tue, Apr 2, 2019 at 8:51 PM Stephen Hemminger > wrote: > > > 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

Re: [dpdk-dev] [PATCH v2] bus/pci: fix TOCTOU issue

2019-06-14 Thread David Marchand
On Tue, Apr 2, 2019 at 8:51 PM Stephen Hemminger wrote: > 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 in

[dpdk-dev] [PATCH v2] bus/pci: fix TOCTOU issue

2019-04-02 Thread Stephen Hemminger
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: 4a928ef9f611 ("bus/pci: enabl