All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xend-config.sxp (TESTING tree)
@ 2005-05-31  1:27 aq
  0 siblings, 0 replies; only message in thread
From: aq @ 2005-05-31  1:27 UTC (permalink / raw)
  To: Xen Dev

[-- Attachment #1: Type: text/plain, Size: 667 bytes --]

This patch (against -testing ChangeSet@1.1885.1.1) does the followings:

- put some configurable variables to xend_config.sxp, and set them to
default values. That will make people aware of their existence, and
let them easily reconfigure xend when needed.
- set some daemon addresses to 'localhost' instead of empty string,
which makes them more secure by default.
- add one comment and fix some comments in XendRoot.py

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>

$ diffstat xend_config.testing.patch 
 examples/xend-config.sxp    |    8 ++++++++
 python/xen/xend/XendRoot.py |    7 +++----
 2 files changed, 11 insertions(+), 4 deletions(-)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: xend_config.testing.patch --]
[-- Type: text/x-patch; name="xend_config.testing.patch", Size: 2083 bytes --]

===== tools/examples/xend-config.sxp 1.6 vs edited =====
--- 1.6/tools/examples/xend-config.sxp	2005-03-18 06:18:22 -05:00
+++ edited/tools/examples/xend-config.sxp	2005-05-29 00:52:40 -05:00
@@ -44,3 +44,11 @@
 # Setup script for enbd-backed block devices
 (block-enbd block-enbd)
 
+# Default path to the root of the database.
+(dbroot "/var/lib/xen/xend-db")
+
+# Default path to the log file.
+(logfile "/var/log/xend.log")
+
+# Default level of information to be logged.
+(loglevel 'DEBUG')
===== tools/python/xen/xend/XendRoot.py 1.18 vs edited =====
--- 1.18/tools/python/xen/xend/XendRoot.py	2005-03-11 07:54:23 -05:00
+++ edited/tools/python/xen/xend/XendRoot.py	2005-05-29 00:52:08 -05:00
@@ -42,10 +42,11 @@
     """Default path to the log file. """
     logfile_default = "/var/log/xend.log"
 
+	"""Default level of information to be logged."""
     loglevel_default = 'DEBUG'
 
     """Default interface address xend listens at. """
-    xend_address_default      = ''
+    xend_address_default      = 'localhost'
 
     """Default port xend serves HTTP at. """
     xend_port_default         = '8000'
@@ -54,7 +55,7 @@
     xend_event_port_default   = '8001'
 
     """Default inteface address xend listens at for consoles."""
-    console_address_default   = ''
+    console_address_default   = 'localhost'
 
     """Default port xend serves consoles at. """
     console_port_base_default = '9600'
@@ -230,7 +231,6 @@
 
     def get_xend_address(self):
         """Get the address xend listens at for its HTTP and event ports.
-        This defaults to the empty string which allows all hosts to connect.
         If this is set to 'localhost' only the localhost will be able to connect
         to the HTTP and event ports.
         """
@@ -238,7 +238,6 @@
 
     def get_console_address(self):
         """Get the address xend listens at for its console ports.
-        This defaults to the empty string which allows all hosts to connect.
         If this is set to 'localhost' only the localhost will be able to connect
         to the console ports.
         """

[-- 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] only message in thread

only message in thread, other threads:[~2005-05-31  1:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-31  1:27 [PATCH] xend-config.sxp (TESTING tree) aq

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.