Re: [PATCH 1/2] block: Add BDRV_O_NO_SHARE for blk_new_open()

2021-04-13 Thread Eric Blake
On 4/13/21 8:23 AM, Kevin Wolf wrote: > Normally, blk_new_open() just shares all permissions. This was fine > originally when permissions only protected against uses in the same > process because no other part of the code would actually get to access > the block nodes opened with blk_new_open().

[PATCH 1/2] block: Add BDRV_O_NO_SHARE for blk_new_open()

2021-04-13 Thread Kevin Wolf
Normally, blk_new_open() just shares all permissions. This was fine originally when permissions only protected against uses in the same process because no other part of the code would actually get to access the block nodes opened with blk_new_open(). However, since we use it for file locking now,