Re: [Xen-devel] [PATCH 08/22] xentoolcore_restrict_all: "Implement" for libxencall

2017-09-19 Thread Ian Jackson
Wei Liu writes ("Re: [PATCH 08/22] xentoolcore_restrict_all: "Implement" for libxencall"): > On Fri, Sep 15, 2017 at 07:48:45PM +0100, Ian Jackson wrote: > > +nullfd = open("/dev/null",O_RDONLY); > > Space after "," please. OK. I will keep that change when the code moves, in a moment. > Wi

Re: [Xen-devel] [PATCH 08/22] xentoolcore_restrict_all: "Implement" for libxencall

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:45PM +0100, Ian Jackson wrote: > +static int all_restrict_cb(Xentoolcore__Active_Handle *ah, uint32_t domid) { > +xencall_handle *xcall = CONTAINER_OF(ah, *xcall, tc_ah); > +int nullfd = -1, r; > + > +if (xcall->fd < 0) > +/* just in case */ > +

[Xen-devel] [PATCH 08/22] xentoolcore_restrict_all: "Implement" for libxencall

2017-09-15 Thread Ian Jackson
Signed-off-by: Ian Jackson --- tools/Rules.mk| 2 +- tools/libs/call/Makefile | 4 ++-- tools/libs/call/core.c| 37 + tools/libs/call/linux.c | 4 tools/libs/call/private.h | 2 ++ tools/libs/call/xencall.pc.in |