From: Steve Kemp <steve@steve.org.uk>
To: Gaurav Maheshbhai Patel <gmpatel@learn.senecac.on.ca>
Cc: xen-devel@lists.xensource.com
Subject: Re: Instant Xen guest (guest-magic tool)
Date: Wed, 11 Apr 2007 10:06:18 +0100 [thread overview]
Message-ID: <20070411090617.GA24664@steve.org.uk> (raw)
In-Reply-To: <f3899b7e228e.461c06f2@learn.senecac.on.ca>
On Tue, Apr 10, 2007 at 09:51:46PM -0500, Gaurav Maheshbhai Patel wrote:
> Give new guest domain name and memory. You Are Done!!!!!!!!!!!!!!!
> We also successfully released it on sourceforge.net.
> This is our first release. And development is in progress.
> Comments and suggestion is HIGHLY appriciated.
Just two quick comments.
Firstly it doesn't seem to do everything, just create an LVM volume
and the configuration file. I was hoping it would install fresh
copies of Fedora/Debian/Gentoo/etc.
Secondly you shouldn't really be using /tmp in the way that you
are. This is very dangerous:
commands.getoutput('xm list > /tmp/guestmagic')
"xm" has to be run as root, so what you're doing is writing the
output of a command, as root, into a file in /tmp which anybody
else upon the system might have created.
Consider what happens if userA were to run:
ln -s /tmp/guestmagic /etc/passwd
The next time you run your application the password file would
be trashed!
I'd suggest you either use a pipe, or a secure *unpredictable*
filename instead.
Steve
--
Debian GNU/Linux System Administration
http://www.debian-administration.org/
next prev parent reply other threads:[~2007-04-11 9:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-11 2:51 Instant Xen guest (guest-magic tool) Gaurav Maheshbhai Patel
2007-04-11 9:06 ` Steve Kemp [this message]
2007-04-11 18:54 ` Gaurav Maheshbhai Patel
2007-04-11 22:42 ` Steve Kemp
2007-04-12 16:17 ` Gaurav Maheshbhai Patel
2007-04-12 18:52 ` Steve Kemp
2007-04-14 14:51 ` Gaurav Maheshbhai Patel
2007-04-15 0:19 ` Steve Kemp
2007-04-15 10:59 ` Gaurav Maheshbhai Patel
-- strict thread matches above, loose matches on Subject: below --
2007-04-17 22:51 Tom Wisniewski
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=20070411090617.GA24664@steve.org.uk \
--to=steve@steve.org.uk \
--cc=gmpatel@learn.senecac.on.ca \
--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.