diff options
author | Kevin Wolf <kwolf@redhat.com> | 2021-04-22 18:43:43 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2021-04-30 12:27:48 +0200 |
commit | 35b7f4abd5afe159f91ddeb4f2a40c20d2f48367 (patch) | |
tree | 1a594852fc368c3b7f6d1bfc70353274248011de /util | |
parent | c20555e15fdb84172254dbbde393f07ee0f44af3 (diff) | |
download | qemu-35b7f4abd5afe159f91ddeb4f2a40c20d2f48367.zip qemu-35b7f4abd5afe159f91ddeb4f2a40c20d2f48367.tar.gz qemu-35b7f4abd5afe159f91ddeb4f2a40c20d2f48367.tar.bz2 |
block: Add BDRV_O_NO_SHARE for blk_new_open()
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, unsharing permissions becomes desirable.
Add a new BDRV_O_NO_SHARE flag that is used in blk_new_open() to unshare
any permissions that can be unshared.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20210422164344.283389-2-kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions