From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= Subject: Re: [PATCH RFC 06/12] libxl: set correct permissions for the full backend path Date: Wed, 25 Sep 2013 16:02:47 +0200 Message-ID: <5242ED07.8060706@citrix.com> References: <1379932259-46104-1-git-send-email-roger.pau@citrix.com> <1379932259-46104-7-git-send-email-roger.pau@citrix.com> <1380117426.23688.168.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VOpgA-0001fg-Ov for xen-devel@lists.xenproject.org; Wed, 25 Sep 2013 14:02:59 +0000 In-Reply-To: <1380117426.23688.168.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xenproject.org, Ian Jackson List-Id: xen-devel@lists.xenproject.org On 25/09/13 15:57, Ian Campbell wrote: > On Mon, 2013-09-23 at 12:30 +0200, Roger Pau Monne wrote: >> The backend path should be fully owned by the domain where it resides. > > I can see why /local/domain/backends// would need to be > owned by the backend dom, but why > do /local/domain/backends//, /local/domain/backends/, etc need to be? The path /local/domain/backends/// is already owned by the driver domain, the problem is that if the driver domain has to perform the clean up of this path it should be able to fully remove it, otherwise we are leaving empty directories around in xenstore (backend// and so). And performing the clean up from the toolstack domain is not that easy, we will have to add a way to signal the toolstack domain that the driver domain has finished the disconnection and the directory can be cleaned.