From: Anthony Liguori <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
To: Dimitry Golubovsky <golubovsky-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Are root privileges really needed to run kvm?
Date: Wed, 13 Jun 2007 10:10:30 -0500 [thread overview]
Message-ID: <467008E6.9030903@codemonkey.ws> (raw)
In-Reply-To: <bcba51a0706130801r79a77751m31d46aac630c3e80-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Dimitry Golubovsky wrote:
> Anthony,
>
> On 6/13/07, Anthony Liguori <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org> wrote:
>
>> One thing to consider is that if a userspace process can create KVM
>> guests, they are capable of pinning large quantities of physical
>> memory. This could be used as a DoS attack so consider VM creation a
>> privileged operation.
>
> No, that's not what is intended. I was asking about possibility to run
> KVM at users privileges after some necessary actions have been
> completed, and tried to compile a list of such actions.
>
> That is,
>
> - adjust RTC (I just added this to the system startup script)
You can also just run guests with -no-rtc.
> - create a tap
> - add tap to the bridge (if bridging is used)/adjust iptables if no
> bridging (another example in qemu wiki)
You may want to look at VDE (http://vde.sf.net). One of it's purposes
was to allow non-privileged users to access bridges.
> - open /dev/kvm (as it has been found, group membership is sufficient
> if group can write to /dev/kvm)
>
> After that, process privileges might be dropped to those of the user
> who logged (ssh'd) in. Images of disk volumes and CDs may then be
> assigned proper permissions, so users may be more flexible on what to
> run, and regular Unix filesystem mechanisms will control access.
Yup.
> BTW if qemu_system_x86-64 runs at user privileges, can the memory
> consumed be subject to whatever per-user limits that may be set
> systemwide?
I don't think so although as Avi mentioned, this will be addressed when
the overcommit patches are merged.
Regards,
Anthony Liguori
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
prev parent reply other threads:[~2007-06-13 15:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-11 13:19 Are root privileges really needed to run kvm? Dimitry Golubovsky
[not found] ` <bcba51a0706110619q661628b6lfd6b6968ad893c59-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-13 8:30 ` Avi Kivity
[not found] ` <466FAB08.5050902-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-13 14:28 ` Anthony Liguori
[not found] ` <466FFF13.8000102-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-06-13 14:34 ` Avi Kivity
2007-06-13 15:01 ` Dimitry Golubovsky
[not found] ` <bcba51a0706130801r79a77751m31d46aac630c3e80-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-13 15:08 ` Avi Kivity
[not found] ` <46700887.30009-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-13 15:26 ` Dimitry Golubovsky
[not found] ` <bcba51a0706130826r60175d04r3e8a402f2c8f6271-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-13 15:33 ` Avi Kivity
[not found] ` <46700E4A.50906-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-13 15:39 ` Dimitry Golubovsky
[not found] ` <bcba51a0706130839l143bb209pfc4ee664ce20f300-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-13 15:54 ` Avi Kivity
2007-06-13 15:10 ` Anthony Liguori [this message]
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=467008E6.9030903@codemonkey.ws \
--to=anthony-rdkfgonbjusknkdkm+me6a@public.gmane.org \
--cc=golubovsky-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/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.