]> Git Repo - qemu.git/commit
scsi: build qemu-pr-helper
authorPaolo Bonzini <[email protected]>
Tue, 22 Aug 2017 04:50:18 +0000 (06:50 +0200)
committerPaolo Bonzini <[email protected]>
Fri, 22 Sep 2017 19:07:24 +0000 (21:07 +0200)
commitb855f8d175a0a26c9798cbc5962bb8c0d9538231
tree06ef9b853e3700eb33aaccd9ffba4c0922baaf42
parent7c9e527659c67d4d7b41d9504f93d2d7ee482488
scsi: build qemu-pr-helper

Introduce a privileged helper to run persistent reservation commands.
This lets virtual machines send persistent reservations without using
CAP_SYS_RAWIO or out-of-tree patches.  The helper uses Unix permissions
and SCM_RIGHTS to restrict access to processes that can access its socket
and prove that they have an open file descriptor for a raw SCSI device.

The next patch will also correct the usage of persistent reservations
with multipath devices.

It would also be possible to support for Linux's IOC_PR_* ioctls in
the future, to support NVMe devices.  For now, however, only SCSI is
supported.

Signed-off-by: Paolo Bonzini <[email protected]>
Makefile
configure
docs/interop/pr-helper.rst [new file with mode: 0644]
docs/pr-manager.rst
scsi/pr-helper.h [new file with mode: 0644]
scsi/qemu-pr-helper.c [new file with mode: 0644]
This page took 0.025566 seconds and 4 git commands to generate.