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
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 */
> +
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 |