]> xenbits.xensource.com Git - people/royger/xen.git/commit
tools/libxendevicemodel: add a call to restrict the handle
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 10 Feb 2017 14:34:15 +0000 (14:34 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 23 Feb 2017 11:57:51 +0000 (11:57 +0000)
commit8ef5f344d061d408f10211c08f09e7d39293fe7d
treed335c6520ced5cdb43b8a075b55ae6cdd2269f02
parente7745d8ef588a2da0f6cba0846fc168f0b76fc37
tools/libxendevicemodel: add a call to restrict the handle

My recent patch [1] to the Linux privcmd module introduced a mechanism
to restrict an open file handle to subsequently only accept operations for
a specified domain.

This patch extends the libxendevicemodel API and make use of the
mechanism in the Linux-specific code to restrict operations on the
interface handle.

[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>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/include/xen-sys/Linux/privcmd.h
tools/libs/devicemodel/compat.c
tools/libs/devicemodel/core.c
tools/libs/devicemodel/include/xendevicemodel.h
tools/libs/devicemodel/libxendevicemodel.map
tools/libs/devicemodel/linux.c
tools/libs/devicemodel/private.h