]> git.baikalelectronics.ru Git - kernel.git/commit
xen/evtchn: add IOCTL_EVTCHN_RESTRICT
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 11 Jul 2016 14:45:51 +0000 (15:45 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 25 Jul 2016 09:59:31 +0000 (10:59 +0100)
commit72a8ecd9f1dbec0383b5456144c24bd8175012de
tree6945716f9f0a670c14a9e1020a069e08e7929776
parent4e90840aee65518b31c675f2f85e3d56eb095e16
xen/evtchn: add IOCTL_EVTCHN_RESTRICT

IOCTL_EVTCHN_RESTRICT limits the file descriptor to being able to bind
to interdomain event channels from a specific domain.  Event channels
that are already bound continue to work for sending and receiving
notifications.

This is useful as part of deprivileging a user space PV backend or
device model (QEMU).  e.g., Once the device model as bound to the
ioreq server event channels it can restrict the file handle so an
exploited DM cannot use it to create or bind to arbitrary event
channels.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/evtchn.c
include/uapi/xen/evtchn.h