All of lore.kernel.org
 help / color / mirror / Atom feed
* protecting xen startup
@ 2004-11-23 17:05 Luke Kenneth Casson Leighton
  2004-11-23 18:07 ` Mike Wray
  2004-11-23 18:07 ` Mark Williamson
  0 siblings, 2 replies; 23+ messages in thread
From: Luke Kenneth Casson Leighton @ 2004-11-23 17:05 UTC (permalink / raw)
  To: xen-devel

hi,

i notice that there's a management interface on port 8000.

i seek to protect this interface such that nothing but a trusted program
(think selinux) may run, manage, start up or shut down xen oses.

so: where can i find out information about the structure of the
xen management interface?

is the port 8000 stuff just providing a web server (/etc/init.d/xend)
front-end to some extra system calls?

is the port 8000 stuff actually running in the xen boot-up stuff?

if it's some extra system calls that's very good because it will be
possible to add selinux security hooks to protect each system call.

ta,

l.

-- 
--
<a href="http://lkcl.net">http://lkcl.net</a>
--


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: protecting xen startup
@ 2004-11-23 17:33 Charles Coffing
  2004-11-23 17:58 ` Mike Wray
  0 siblings, 1 reply; 23+ messages in thread
From: Charles Coffing @ 2004-11-23 17:33 UTC (permalink / raw)
  To: xen-devel, lkcl

Right, xend is just an HTTP interface to Xen via system calls or ioctls 
(xend <--> linux <--> Xen).

There's also a daemon (xfrd) running on 8002.

There currently is no authentication on either port.

In the source tree, look at docs/misc/xend.tex, although some details
are out of date.


HTH,
Charles
 
 
>>>Luke Kenneth Casson Leighton <lkcl@lkcl.net> 11/23/04 10:05 am >>> 
hi, 
 
i notice that there's a management interface on port 8000. 
 
i seek to protect this interface such that nothing but a trusted program

(think selinux) may run, manage, start up or shut down xen oses. 
 
so: where can i find out information about the structure of the 
xen management interface? 
 
is the port 8000 stuff just providing a web server (/etc/init.d/xend) 
front-end to some extra system calls? 
 
is the port 8000 stuff actually running in the xen boot-up stuff? 
 
if it's some extra system calls that's very good because it will be 
possible to add selinux security hooks to protect each system call. 
 
ta, 
 
l. 
 
-- 
-- 
<a href="http://lkcl.net">http://lkcl.net</a> 
-- 
 
 
------------------------------------------------------- 
SF email is sponsored by - The IT Product Guide 
Read honest & candid reviews on hundreds of IT Products from real users.

Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/ 
 
Xen-devel mailing list 
Xen-devel@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/xen-devel 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 23+ messages in thread
* RE: protecting xen startup
@ 2004-11-23 23:58 Neugebauer, Rolf
  2004-11-24 10:53 ` Luke Kenneth Casson Leighton
  0 siblings, 1 reply; 23+ messages in thread
From: Neugebauer, Rolf @ 2004-11-23 23:58 UTC (permalink / raw)
  To: Mark Williamson, Luke Kenneth Casson Leighton; +Cc: xen-devel



> -----Original Message-----
> From: xen-devel-admin@lists.sourceforge.net [mailto:xen-devel-
> admin@lists.sourceforge.net] On Behalf Of Mark Williamson
> Sent: 23 November 2004 22:49
> To: Luke Kenneth Casson Leighton
> Cc: xen-devel@lists.sourceforge.net
> Subject: Re: [Xen-devel] protecting xen startup
> 
> > is there anything preventing that interface from being removed, such
> > that the client/server bit is munged into a single application?
> 
> In older releases, there wasn't a Xend.  Instead we had a set of
> management scripts that called various operations directly.  You could
in
> principle munge xm and xend together into a big megatool but it
wouldn't
> be pretty.

Well not quite since in the older releases we also didn't have event
channels and control channels.

Basically with the new IO model we need something somewhere which either
connects event channels or which at least assists two domains to set up
a event channel with shared memory pages (ie a name server).

>From a security point of view we probably should/need to restructure the
current xend significantly into at least two components: a small name
server and a daemon/tool which knows about assignment of higher level
devices to domains etc. Note that this will also require changes to
backend and frontends etc, ie, it's non-trivial.

> Xend makes concurrency control much easier, provides a central point
of
> contact regarding machine state and demuxes the virtual consoles of
the
> domain.  You'd have to address these problems in addition to combining
the
> tools, which would take a fair bit of hacking to do properly.
> 
> >> Not exactly.  At the Linux Level, there aren't any extra Xen system
> calls.
> >> Most commands are issued to Xen by performing ioctls on the
> >> /proc/xen/privcmd file.
> >
> > GREAT.
> >
> > that means that it will be possible to lock down at the very least
the
> > access to /proc/xen and later, should it prove worthwhile, to
protect
> > each ioctl with a new selinux security id per ioctl command.
> 
> Right now, only root (actually, probably users with the CAP_SYSADMIN
> capability or similar) can do operations on /proc/xen.  Also, many Xen
> operations are mapped onto one ioctl call so as it is you can't do
very
> fine grained protection based on ioctl number.  What you describe
would be
> technically possible if a separate ioctl was allocated for each
operation,
> though.

In general, as ian pointed out, the current design is more geared
towards clusters, however, we started looking into security applications
of Xen and will hopefully address these issues in future releases.
Currently, our thinking is also very much along the lines of leveraging
SELinux as much as possible at least for the first prototype, however
there are several changes we would have to make first ...

rolf

> Cheers,
> Mark
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real
users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 23+ messages in thread
* RE: protecting xen startup
@ 2004-11-24 11:48 Neugebauer, Rolf
  2004-11-24 15:24 ` Luke Kenneth Casson Leighton
  0 siblings, 1 reply; 23+ messages in thread
From: Neugebauer, Rolf @ 2004-11-24 11:48 UTC (permalink / raw)
  To: Luke Kenneth Casson Leighton; +Cc: Mark Williamson, xen-devel, Neugebauer, Rolf



> -----Original Message-----
> From: Luke Kenneth Casson Leighton [mailto:lkcl@lkcl.net]
> Sent: 24 November 2004 10:53
> To: Neugebauer, Rolf
> Cc: Mark Williamson; xen-devel@lists.sourceforge.net
> Subject: Re: [Xen-devel] protecting xen startup
> 
> On Tue, Nov 23, 2004 at 11:58:51PM -0000, Neugebauer, Rolf wrote:
> 
> > From a security point of view we probably should/need to restructure
the
> > current xend significantly into at least two components: a small
name
> > server and a daemon/tool which knows about assignment of higher
level
> > devices to domains etc. Note that this will also require changes to
> > backend and frontends etc, ie, it's non-trivial.
> 
>   hi rolf,
> 
>   i'm not familiar enough with the terminology that you are using to
>   understand fully what you are saying.
> 
>  are you hinting at the allocation of device drivers across domains?
> 
>  e.g. having one domain do the hardware side and securely
>  proxy-forwarding the access to that device over to another domain?

We run native device drivers in a privileged VM and and in order to
share physical devices amongst VMs this VM then exports these to other
VMs via idealized/virtual interfaces. The VM with the native device
driver exports devices via a backend driver and the VMs using a virtual
device run a small stub frontend device driver. The communication
between BE and FW is done via shared memory pages and access to these is
synchronized via event channels.

>  for example /dev/console in one domain being proxy-forwarded into
>  another domain for it to be accessible as /dev/xendomainconsole0,
>  something like that?
> 
>  because if so that _would_ be great because it'd be a trivial job in
>  selinux to set up an selinux permission to access the device inode
>  at the "receiving" end so to speak.

Yes, in principle you should be able to do that (and we have been
thinking along similar lines). However, at the moment the linux kernel
in the exporting VM (BE) does not know anything about other VMs so as
far as my understanding goes you can't apply SELinux policies to it as
you don't have a subject.

Rolf

> 
>  ... but i have to point out that i'm more concerned about leveraging
>  what is available - right now - than i am about future versions.
> 
>  l.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2004-11-24 20:24 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-23 17:05 protecting xen startup Luke Kenneth Casson Leighton
2004-11-23 18:07 ` Mike Wray
2004-11-23 21:03   ` Luke Kenneth Casson Leighton
2004-11-23 18:07 ` Mark Williamson
2004-11-23 20:51   ` Luke Kenneth Casson Leighton
2004-11-23 21:03     ` Ian Pratt
2004-11-23 21:52       ` Luke Kenneth Casson Leighton
2004-11-23 22:00         ` Jan Kundrát
2004-11-24  0:21           ` Luke Kenneth Casson Leighton
2004-11-24  8:17             ` Mark Williamson
2004-11-24 10:39               ` Luke Kenneth Casson Leighton
2004-11-23 22:49     ` Mark Williamson
2004-11-24  0:18       ` [Xen-devel] " Luke Kenneth Casson Leighton
2004-11-24  0:18         ` Luke Kenneth Casson Leighton
2004-11-24  8:27         ` Mark Williamson
  -- strict thread matches above, loose matches on Subject: below --
2004-11-23 17:33 Charles Coffing
2004-11-23 17:58 ` Mike Wray
2004-11-23 23:58 Neugebauer, Rolf
2004-11-24 10:53 ` Luke Kenneth Casson Leighton
2004-11-24 11:55   ` Mark Williamson
2004-11-24 11:48 Neugebauer, Rolf
2004-11-24 15:24 ` Luke Kenneth Casson Leighton
2004-11-24 20:24   ` Luke Kenneth Casson Leighton

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.