All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Scrub vnc password for vfb
@ 2008-02-05  7:47 Masaki Kanno
  2008-02-05  8:45 ` Keir Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: Masaki Kanno @ 2008-02-05  7:47 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Mail message body --]
[-- Type: text/plain, Size: 844 bytes --]

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 <kanno.masaki@jp.fujitsu.com>

Best regards,
 Kan


[-- Attachment #2: scrub_passwd_vfb.patch --]
[-- Type: application/octet-stream, Size: 1370 bytes --]

diff -r 99b8ffe25088 tools/python/xen/xend/server/DevController.py
--- a/tools/python/xen/xend/server/DevController.py	Mon Feb 04 13:57:01 2008 +0000
+++ b/tools/python/xen/xend/server/DevController.py	Tue Feb 05 15:46:42 2008 +0900
@@ -22,6 +22,7 @@ from xen.xend import sxp, XendOptions
 from xen.xend import sxp, XendOptions
 from xen.xend.XendError import VmError
 from xen.xend.XendLogging import log
+import xen.xend.XendConfig
 
 from xen.xend.xenstore.xstransact import xstransact, complete
 from xen.xend.xenstore.xswatch import xswatch
@@ -113,10 +114,10 @@ class DevController:
                     raise VmError("Device %s is already connected." % dev_str)
 
                 if count == 0:
-                    log.debug('DevController: writing %s to %s.', str(front),
-                              frontpath)
-                    log.debug('DevController: writing %s to %s.', str(back),
-                              backpath)
+                    log.debug('DevController: writing %s to %s.',
+                              str(front), frontpath)
+                    log.debug('DevController: writing %s to %s.',
+                              str(xen.xend.XendConfig.scrub_password(back)), backpath)
                 elif count % 50 == 0:
                     log.debug(
                       'DevController: still waiting to write device entries.')

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-02-05 14:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-05  7:47 [PATCH] Scrub vnc password for vfb Masaki Kanno
2008-02-05  8:45 ` Keir Fraser
2008-02-05 10:38   ` Ian Jackson
2008-02-05 14:06   ` Daniel P. Berrange

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.