]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Add *tighten_restrictions to *check*_perm()
authorMax Reitz <mreitz@redhat.com>
Wed, 22 May 2019 17:03:50 +0000 (19:03 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 18 Jun 2019 14:41:10 +0000 (16:41 +0200)
commit9eab1544150229609d67e83f52e969ed0ec2c8a3
tree796e6f292f50a37627c3cf806c3961e33215b610
parent87ace5f8b6cbb9be14cf771a8962e32fd97f9660
block: Add *tighten_restrictions to *check*_perm()

This patch makes three functions report whether the necessary permission
change tightens restrictions or not.  These functions are:
- bdrv_check_perm()
- bdrv_check_update_perm()
- bdrv_child_check_perm()

Callers can use this result to decide whether a failure is fatal or not
(see the next patch).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c