All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir@xensource.com>
To: "George S. Coker, II" <gscoker@alpha.ncsc.mil>,
	Keir Fraser <keir@xensource.com>
Cc: xen-devel@lists.xensource.com, xense-devel@lists.xensource.com
Subject: Re: [Xense-devel][PATCH][XSM][1/4] Xen Security Modules Patch
Date: Thu, 08 Mar 2007 19:06:38 +0000	[thread overview]
Message-ID: <C2160F3E.B134%keir@xensource.com> (raw)
In-Reply-To: <1173377319.11144.74.camel@moss-walleye.epoch.ncsc.mil>

On 8/3/07 18:08, "George S. Coker, II" <gscoker@alpha.ncsc.mil> wrote:

> The check on send, enables for the flask module the creation of a one-
> way event channel.  Flask can check whether A can send to B, but this
> does not imply that B can send to A.  The primary value for this check
> is in the construction of one-way information flows.

Fair enough.

> The pirq bindings are meant to protect the hypervisor against abuse by
> the control-plane, thereby ensuring that the control-plane cannot setup
> resource bindings that are prohibited by the policy.  The control-plane
> in this argument is decomposed or deprivileged by the running policy
> such that it is unable to cause a policy reload and circumvent these
> checks.

You can restrict this via the iocaps mechanism, and I'll bet you already
include a hook that could prevent the domain from modifying its own iocaps
in a disallowed way. :-)

> While the virq/ipi have local-domain scope, it is in the interest of
> comprehensiveness that this hooks exists.  For a domain running a
> general purpose OS, this hook has little value since anything checked
> here will always likely need to be granted.  However, light-weight
> domains for which the enforced policy could be justifiably more
> restrictive, would benefit from this hook.

I don't think this is true. Same applies to evtchn_close(): another entirely
local VM operation. It seems outside the scope of XSM policy to be hooking
those. If you were to go this route then wouldn't you essentially be arguing
for interception of *every* hypercall subcommand?

> Separate hooks does not necessarily mean separate permissions - the
> breakdown of permissions is module dependent.  Separate hooks allows for
> a narrower per-hook interface (ensuring that the hooks are unlikely to
> be abused for non-security purposes) and makes it unlikely that a given
> hook will be separated from or lose context with the critical code path.

If new critical code paths are added then XSM could end up with a set of
critical paths that it doesn't hook at all. That would be less of a problem
if the hooks aren't pushed way down into hypercall subcommands. I guess you
can argue this one either way. With this scheme you don't end up having to
demux the hypercall subcommands in every XSM module implementation.

 -- Keir

  reply	other threads:[~2007-03-08 19:06 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-08 15:28 [Xense-devel][PATCH][XSM][1/4] Xen Security Modules Patch George S. Coker, II
2007-03-08 15:59 ` Alex Williamson
2007-03-08 16:16   ` George S. Coker, II
2007-03-08 16:43     ` Alex Williamson
2007-03-08 16:21 ` Keir Fraser
2007-03-08 18:08   ` George S. Coker, II
2007-03-08 19:06     ` Keir Fraser [this message]
2007-03-08 19:58       ` George S. Coker, II
2007-03-09  9:43         ` Keir Fraser
2007-03-09 16:55           ` George S. Coker, II
2007-03-09 17:51             ` Stefan Berger
2007-03-09 20:04               ` George S. Coker, II
2007-03-09 22:01                 ` Stefan Berger
2007-03-09 22:07                   ` George S. Coker, II
2007-03-09 22:09                   ` Keir Fraser
2007-03-08 19:08     ` George S. Coker, II
  -- strict thread matches above, loose matches on Subject: below --
2007-03-13 19:33 George S. Coker, II

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=C2160F3E.B134%keir@xensource.com \
    --to=keir@xensource.com \
    --cc=gscoker@alpha.ncsc.mil \
    --cc=xen-devel@lists.xensource.com \
    --cc=xense-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.