From: Daniel De Graaf <dgdegra@tycho.nsa.gov>
To: tech mailinglists <mailinglists.tech@gmail.com>
Cc: xen-users <xen-users@lists.xen.org>, xen-devel@lists.xen.org
Subject: Re: [User Question] Correct XSM/FLASK ruleset for oxenstored
Date: Mon, 14 Jan 2013 13:32:24 -0500 [thread overview]
Message-ID: <50F44F38.2020403@tycho.nsa.gov> (raw)
In-Reply-To: <CAMCOOJs9HN95a3two1Ewb_7Ni4gu94_NUPyQ_p1qYKB0ew-d5A@mail.gmail.com>
On 01/13/2013 01:17 AM, tech mailinglists wrote:
[...]
>
> Hello all,
>
> I am actually working on Dom0 disaggregation and wan't to use an oxenstored
> stubdomain. But I have a problem to write the needed XSM/FLASK rule/rules.
> So I understood that this rules are written like SELinux rules so a defined
> application has a defined right. And for oxenstored the domctl
> getdomaininfo right must be given. So I have builded the oxenstored stubdom
> already like explained here:
> http://www.openmirage.org/blog/xenstore-stub-domain and I am also running
> on Linux 3.7.1 with pv_ops enabled. So I just need help to get good
> XSM/FLASK files. Would be great to see an example for such a rule or
> something like that.
>
> Best Regards****
>
> Hello,
>
> its a Question about XSM/FLASK and oxenstored, details in the messages
> above. I also have forwarded this to the xen-users mailinglist but got no
> reply and the documentation of XSM/FLASK in the wiki is very short so I am
> realy unsure how to do it right.
>
> Best Regards
>
>
This is the xenstore domain policy that I have been using to test. It is
based on the patches currently in xen 4.3-unstable-staging and has only
been tested with the C xenstore stubdom, although I expect it to work with
the mirage oxenstored stubdom.
################################################################################
#
# Xenstore stubdomain
#
################################################################################
declare_singleton_domain(xenstore_t)
create_domain(dom0_t, xenstore_t)
manage_domain(dom0_t, xenstore_t)
# Xenstore requires the global VIRQ for domain destroy operations
allow dom0_t xenstore_t:domain set_virq_handler;
# Current xenstore stubdom uses the hypervisor console, not "xl console"
allow xenstore_t xen_t:xen writeconsole;
# Xenstore queries domaininfo on all domains
allow xenstore_t domain_type:domain getdomaininfo;
# As a shortcut, the following 3 rules are used instead of adding a domain_comms
# rule between xenstore_t and every domain type that talks to xenstore
create_channel(xenstore_t, domain_type, xenstore_t_channel)
allow event_type xenstore_t: event bind;
allow xenstore_t domain_type:grant { map_read map_write unmap };
--
Daniel De Graaf
National Security Agency
next prev parent reply other threads:[~2013-01-14 18:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAMCOOJsPYbfO72jFYBdudhYr0W43yBTRD-9ZiNRY2KYud4AS5g@mail.gmail.com>
[not found] ` <81A73678E76EA642801C8F2E4823AD21012F0D72EBFB@LONPMAILBOX01.citrite.net>
[not found] ` <CAMCOOJsMorqbw0obDmAJtPTXd3v9Hq2s6VwhEFdFYJ=JorwWGw@mail.gmail.com>
2013-01-13 6:17 ` Fwd: [User Question] Correct XSM/FLASK ruleset for oxenstored tech mailinglists
2013-01-14 18:32 ` Daniel De Graaf [this message]
2013-01-15 14:16 ` tech mailinglists
2013-01-15 14:40 ` Daniel De Graaf
2013-01-16 11:46 ` tech mailinglists
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=50F44F38.2020403@tycho.nsa.gov \
--to=dgdegra@tycho.nsa.gov \
--cc=mailinglists.tech@gmail.com \
--cc=xen-devel@lists.xen.org \
--cc=xen-users@lists.xen.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.