All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xend-config.sxp (-unstable tree)
@ 2005-05-31  1:23 aq
  2005-05-31 13:41 ` Christian Limpach
  0 siblings, 1 reply; 4+ messages in thread
From: aq @ 2005-05-31  1:23 UTC (permalink / raw)
  To: Xen Dev

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

This patch (against -unstable ChangeSet@1.1575) 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 wrong comments in XendRoot.py

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


$ diffstat xend_config.unstable.patch 
 examples/xend-config.sxp    |   28 ++++++++++++++++++++++++++++
 python/xen/xend/XendRoot.py |   14 ++++++--------
 2 files changed, 34 insertions(+), 8 deletions(-)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: xend_config.unstable.patch --]
[-- Type: text/x-patch; name="xend_config.unstable.patch", Size: 4053 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:51:46 -05:00
@@ -1,5 +1,8 @@
 # Xend configuration file.
 
+# Default for the flag indicating whether xend should run an http server.
+(xend-http-server 'no')
+
 # Port xend should use for the HTTP interface.
 (xend-port         8000)
 
@@ -44,3 +47,28 @@
 # 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')
+
+# Default for the flag indicating whether xend should run a relocation server.
+(xend-relocation-server 'yes')
+
+# Default interface address xend listens at for its relocation server.
+# If this is set to 'localhost' only the localhost will be able to connect
+# to its relocation server.
+(xend-relocation-address 'localhost')
+
+# Default port xend listens at for connection to its relocation server.
+(xend-relocation-port '8002')
+
+# Default for the flag indicating whether xend should run a unix-domain server.
+(xend-unix-server 'yes')
+
+# Default path the unix-domain server listens at.
+(xend-unix-path '/var/lib/xend/xend-socket')
===== tools/python/xen/xend/XendRoot.py 1.22 vs edited =====
--- 1.22/tools/python/xen/xend/XendRoot.py	2005-05-25 11:03:17 -05:00
+++ edited/tools/python/xen/xend/XendRoot.py	2005-05-29 00:51:34 -05:00
@@ -43,19 +43,20 @@
     """Default path to the log file. """
     logfile_default = "/var/log/xend.log"
 
+    """Default level of information to be logged. """
     loglevel_default = 'DEBUG'
 
     """Default for the flag indicating whether xend should run an http server."""
     xend_http_server_default = 'no'
 
     """Default interface address xend listens at. """
-    xend_address_default      = ''
+    xend_address_default      = 'localhost'
 
     """Default for the flag indicating whether xend should run a relocation server."""
     xend_relocation_server_default = 'yes'
 
     """Default interface address the xend relocation server listens at. """
-    xend_relocation_address_default = ''
+    xend_relocation_address_default = 'localhost'
 
     """Default port xend serves HTTP at. """
     xend_port_default         = '8000'
@@ -73,7 +74,7 @@
     xend_unix_path_default = '/var/lib/xend/xend-socket'
 
     """Default interface address xend listens at for consoles."""
-    console_address_default   = ''
+    console_address_default   = 'localhost'
 
     """Default port xend serves consoles at. """
     console_port_base_default = '9600'
@@ -280,17 +281,15 @@
 
     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.
         """
         return self.get_config_value('xend-address', self.xend_address_default)
 
     def get_xend_relocation_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.
+        """Get the interface address xend listens at for connection to its relocation server.
         If this is set to 'localhost' only the localhost will be able to connect
-        to the HTTP and event ports.
+        to its relocation server.
         """
         return self.get_config_value('xend-relocation-address', self.xend_relocation_address_default)
 
@@ -306,7 +305,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] 4+ messages in thread

end of thread, other threads:[~2005-05-31 16:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-31  1:23 [PATCH] xend-config.sxp (-unstable tree) aq
2005-05-31 13:41 ` Christian Limpach
2005-05-31 15:53   ` aq
2005-05-31 16:12     ` Christian Limpach

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.