From: Keir Fraser Subject: Re: [PATCH] Scrub vnc password for vfb Date: Tue, 05 Feb 2008 08:45:10 +0000 Message-ID: References: <48C867CB54FB42kanno.masaki@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <48C867CB54FB42kanno.masaki@jp.fujitsu.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: Masaki Kanno , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This leads to a question -- should xend.log (and our other log files) be world readable in the first place? If we want to change it we may have to hack the logging package a bit, as it seems that Python's open() function calls fopen() which does not allow you to manually specify access permissions. Although we could have xend set its umask to 0770. Maybe that would break other stuff though? -- Keir On 5/2/08 07:47, "Masaki Kanno" wrote: > Hi, > > I saw the vnc password in xend.log as follows. > > [2008-02-05 10:35:08 6412] DEBUG (DevController:119) DevController: > writing {'vncunused': '1', 'domain': 'rhel4VTI', 'frontend': '/local/ > domain/1/device/vfb/0', 'uuid': 'e8e7f9db-e104-7d4a-36bd-d5f09ab34378', > 'vncpasswd': 'test', 'state': '1', 'online': '1', 'frontend-id': '1', > 'type': 'vnc'} to /local/domain/0/backend/vfb/1/0. > > This patch scrubs it as follows. > > [2008-02-05 16:23:23 11188] DEBUG (DevController:120) DevController: > writing {'vncunused': '1', 'domain': 'rhel4VTI', 'frontend': '/local/ > domain/2/device/vfb/0', 'uuid': '53f05d3f-9994-bdd7-2293-d60c22b0568b', > 'vncpasswd': 'XXXXXXXX', 'state': '1', 'online': '1', 'frontend-id': '2', > 'type': 'vnc'} to /local/domain/0/backend/vfb/2/0. > > > Signed-off-by: Masaki Kanno > > Best regards, > Kan > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel