xend-config.sxp (TESTING tree)
PATCH 1/1 xend-config.sxp (TESTING tree)
This patch (against -testing [email protected]) 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 <[email protected]>
$ diffstat xend_config.testing.patch examples/xend-config.sxp | 8 ++++++++ python/xen/xend/XendRoot.py | 7 +++---- 2 files changed, 11 insertions(+), 4 deletions(-)
===== tools/examples/xend-config.sxp 1.6 vs edited =====
tools/examples/xend-config.sxp +8 -0
@@ -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 =====
tools/python/xen/xend/XendRoot.py +3 -4
@@ -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. """
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel