From: aq <aquynh@gmail.com>
To: Xen Dev <xen-devel@lists.xensource.com>
Subject: [PATCH] xend-config.sxp (-unstable tree)
Date: Mon, 30 May 2005 20:23:04 -0500 [thread overview]
Message-ID: <9cde8bff050530182342a79827@mail.gmail.com> (raw)
[-- 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
next reply other threads:[~2005-05-31 1:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-31 1:23 aq [this message]
2005-05-31 13:41 ` [PATCH] xend-config.sxp (-unstable tree) Christian Limpach
2005-05-31 15:53 ` aq
2005-05-31 16:12 ` Christian Limpach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9cde8bff050530182342a79827@mail.gmail.com \
--to=aquynh@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.