block: Request real permissions in blk_new_open()
authorKevin Wolf <kwolf@redhat.com>
Fri, 13 Jan 2017 18:13:00 +0000 (19:13 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Feb 2017 19:40:36 +0000 (20:40 +0100)
commitc62d32f503b37322a3960bad4cd4cdb69947d81e
tree4544fde3698e088ffd017dc402e37574dbc20468
parent55880601d82d55cbfa3b5bd9757496b6ebbc527c
block: Request real permissions in blk_new_open()

We can figure out the necessary permissions from the flags that the
caller passed.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
block/block-backend.c