]> xenbits.xensource.com Git - people/royger/xen.git/commit
tools/libxenforeignmemory: add a call to restrict the handle
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 22 Mar 2017 11:25:25 +0000 (11:25 +0000)
committerWei Liu <wei.liu2@citrix.com>
Fri, 24 Mar 2017 12:23:47 +0000 (12:23 +0000)
commit5823d6eb40af67b6775db32e9643bb0471e52e4e
tree88b4ce93cf88a6011d4fba07307d83409df2e809
parent60c59f58765ae941f70212d3243e2bfadfec9906
tools/libxenforeignmemory: add a call to restrict the handle

Commit 8ef5f344d061 "tools/libxendevicemodel: add a call to restrict the
handle" added a function to the devicemodel interface to restrict
operations through the API to a specific domain, where a capable under-
lying privcmd driver exists.

This patch adds similar functionality to the xenforeignmemory API. This
will be necessary (as much as xendevicemodel restriction) for limiting
the scope of device models to specific domains.

NOTE: My patch to the linux kernel [1] added the appropriate checks to
      the foreign memory ioctls.

[1] https://git.kernel.org/cgit/linux/kernel/git/ostr/linux.git/commit/?id=4610d240

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libs/foreignmemory/core.c
tools/libs/foreignmemory/freebsd.c
tools/libs/foreignmemory/include/xenforeignmemory.h
tools/libs/foreignmemory/libxenforeignmemory.map
tools/libs/foreignmemory/linux.c
tools/libs/foreignmemory/minios.c
tools/libs/foreignmemory/netbsd.c
tools/libs/foreignmemory/private.h
tools/libs/foreignmemory/solaris.c