From: Ewan Mellor Subject: Re: Re: [Xen-changelog] Rewritten XendLogging to not be a singleton class, and not have methods used Date: Mon, 10 Oct 2005 18:07:24 +0100 Message-ID: <20051010170724.GC20935@uk.xensource.com> References: <1128960126.2826.15.camel@bree.local.net> <20051010161625.GB20935@uk.xensource.com> <871x2tnwz0.fsf@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <871x2tnwz0.fsf@us.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Mon, Oct 10, 2005 at 09:44:03AM -0700, Dan Smith wrote: > > EM> xm help doesn't cause any logging for me, so there's actually no > EM> file created. I don't know why else someone would be running xm > EM> as a non-privileged user -- perhaps someone who does so could > EM> speak up? > > I think that xm should be at least able to run "help" and "help > --long" as non-root. It should definitely be able to do so without a > stack trace. I don't like blindly running tools as root before I at > least get a chance to look at the help output as a non-root user. Sure, and that works now with my fix. I would have applied your patch, but what you'd effectively done was moved the import of XendLogging so that it didn't occur when doing xm help. That seemed fragile to me, because logging is something that people will import more or less everywhere, so I've changed it so that XendLogging can recover from the permission denied without getting a stack trace. Cheers, Ewan.