Re: [Xen-devel] [PATCH 2/4] libxc: Provide access to internal handles

2018-06-11 Thread Ian Jackson
Roger Pau Monné writes ("Re: [PATCH 2/4] libxc: Provide access to internal handles"): > On Mon, May 14, 2018 at 06:08:57PM +0100, Ian Jackson wrote: > > +struct xencall_handle *xc_interface_xcall_handle(xc_interface *xch); > > +struct xenforeignmemory_handle *xc_interface_fmem_handle(xc_interface

Re: [Xen-devel] [PATCH 2/4] libxc: Provide access to internal handles

2018-05-15 Thread Roger Pau Monné
On Mon, May 14, 2018 at 06:08:57PM +0100, Ian Jackson wrote: > In order to support auditing of qemu depriv, my audit tool wants to > know the fd of a privcmd handle on which it can easily make > hypercalls. xencall provides such a handle, but has no cooked > facilities for making hypercalls. So I

Re: [Xen-devel] [PATCH 2/4] libxc: Provide access to internal handles

2018-05-15 Thread Wei Liu
On Mon, May 14, 2018 at 06:08:57PM +0100, Ian Jackson wrote: > In order to support auditing of qemu depriv, my audit tool wants to > know the fd of a privcmd handle on which it can easily make > hypercalls. xencall provides such a handle, but has no cooked > facilities for making hypercalls. So I

[Xen-devel] [PATCH 2/4] libxc: Provide access to internal handles

2018-05-14 Thread Ian Jackson
In order to support auditing of qemu depriv, my audit tool wants to know the fd of a privcmd handle on which it can easily make hypercalls. xencall provides such a handle, but has no cooked facilities for making hypercalls. So I open a libxc handle. That means I need to get the privcmd fd out of