From: Olaf Hering Subject: Re: [PATCH 4/4] libxl: add support for vscsi Date: Mon, 2 Mar 2015 15:27:28 +0100 Message-ID: <20150302142728.GB17851@aepfle.de> References: <1425291362-30228-1-git-send-email-olaf@aepfle.de> <1425291362-30228-5-git-send-email-olaf@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1425291362-30228-5-git-send-email-olaf@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Wei Liu , Ian Jackson , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Mon, Mar 02, Olaf Hering wrote: > +libxl_device_vscsi *libxl_device_vscsi_list(libxl_ctx *ctx, uint32_t domid, int *num) > + fe_path = libxl__sprintf(gc, "%s/device/vscsi", libxl__xs_get_dompath(gc, domid)); IanC, last year you made a comment that this path should not be trusted because its guest controlled. Other code does not seem to care much about that fact. What should be done here to have a robust parser? Olaf