diff options
author | Ming Lei <[email protected]> | 2023-01-31 12:04:46 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2023-01-31 07:59:22 -0700 |
commit | 48a9051980242128f844defe44c7e83217f79872 (patch) | |
tree | f8c38cac24798390af10c93311c8102d4e9fc2c4 /tools/perf/scripts/python/libxed.py | |
parent | 4a6a7bc21d4726c5772e47525e6039852555b391 (diff) |
ublk_drv: only allow owner to open unprivileged disk
Owner of one unprivileged ublk device could be one evil user, which
can grant this disk's privilege to other users deliberately, and
this way could be like making one trap and waiting for other users
to be caught.
So only owner to open unprivileged disk even though the owner
grants disk privilege to other user. This way is reasonable too
given anyone can create ublk disk, and no need other's grant.
Reported-by: Stefan Hajnoczi <[email protected]>
Fixes: 4093cb5a0634 ("ublk_drv: add mechanism for supporting unprivileged ublk device")
Signed-off-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions