Re: [dpdk-dev] [PATCH] vhost: fix insecure temporary file

2019-11-27 Thread Bruce Richardson
t; dev@dpdk.org; sta...@dpdk.org > > Subject: Re: [dpdk-dev] [PATCH] vhost: fix insecure temporary file > > > > On Tue, Nov 26, 2019 at 11:19:00PM +0800, Jin Yu wrote: > > > When using mkstemp(), remember to safely set the umask before to > > > restrict the result

Re: [dpdk-dev] [PATCH] vhost: fix insecure temporary file

2019-11-26 Thread Yu, Jin
> -Original Message- > From: Bruce Richardson > Sent: Tuesday, November 26, 2019 6:00 PM > To: Yu, Jin > Cc: Maxime Coquelin ; Bie, Tiwei > ; Wang, Zhihong ; > dev@dpdk.org; sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] vhost: fix insecure temporary file &

Re: [dpdk-dev] [PATCH] vhost: fix insecure temporary file

2019-11-26 Thread Bruce Richardson
On Tue, Nov 26, 2019 at 11:19:00PM +0800, Jin Yu wrote: > When using mkstemp(), remember to safely set the umask > before to restrict the resulting temporary file > permissions to only the owner. > > Coverity issue: 350367 > Fixes: d87f1a1cb7b6 ("vhost: support inflight info sharing") > Cc: sta...