From: aq <aquynh@gmail.com>
To: Xen Dev <xen-devel@lists.xensource.com>
Subject: [PATCH] xend-config.sxp (TESTING tree)
Date: Mon, 30 May 2005 20:27:17 -0500 [thread overview]
Message-ID: <9cde8bff050530182749cd4369@mail.gmail.com> (raw)
[-- 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
reply other threads:[~2005-05-31 1:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=9cde8bff050530182749cd4369@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.