Re: [PATCH 2/3] vhost-user-blk-test: fix Coverity mkstemp(2) umask warning

2021-06-01 Thread Stefan Hajnoczi
On Sun, May 30, 2021 at 08:01:21PM +0100, Peter Maydell wrote: > On Wed, 26 May 2021 at 10:14, Stefan Hajnoczi wrote: > > > > The Linux man page for mkstemp(3) states: > > > > In glibc versions 2.06 and earlier, the file is created with > > permissions 0666, that is, read and write for all

Re: [PATCH 2/3] vhost-user-blk-test: fix Coverity mkstemp(2) umask warning

2021-05-30 Thread Peter Maydell
On Wed, 26 May 2021 at 10:14, Stefan Hajnoczi wrote: > > The Linux man page for mkstemp(3) states: > > In glibc versions 2.06 and earlier, the file is created with > permissions 0666, that is, read and write for all users. This old > behavior may be a security risk, especially since other

[PATCH 2/3] vhost-user-blk-test: fix Coverity mkstemp(2) umask warning

2021-05-26 Thread Stefan Hajnoczi
The Linux man page for mkstemp(3) states: In glibc versions 2.06 and earlier, the file is created with permissions 0666, that is, read and write for all users. This old behavior may be a security risk, especially since other UNIX flavors use 0600, and somebody might overlook this detail