From: <Anshul Makkar anshul.makkar@citrix.com>
To: xen-devel@lists.xen.org
Cc: ian.jackson@eu.citrix.com, dgdegra@tycho.nsa.gov,
wei.liu2@citrix.com, Anshul Makkar <anshul.makkar@citrix.com>
Subject: [PATCH] XSM/policy: Allow the source domain access to settime and setdomainhandle domctls while creating domain.
Date: Thu, 7 Jul 2016 14:45:47 +0100 [thread overview]
Message-ID: <1467899147-22315-1-git-send-email-anshul.makkar@citrix.com> (raw)
From: Anshul Makkar <anshul.makkar@citrix.com>
This patch resolves the following permission denied scenarios while creating
new domU :
avc: denied { setdomainhandle } for domid=0 target=1
scontext=system_u:system_r:dom0_t tcontext=system_u:system_r:domU_t tclass=domain
avc: denied { settime } for domid=0 target=1 scontext=system_u:system_r:dom0_t
tcontext=system_u:system_r:domU_t tclass=domain
Signed-off-by: Anshul Makkar <anshul.makkar@citrix.com>
---
tools/flask/policy/modules/xen.if | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/flask/policy/modules/xen.if b/tools/flask/policy/modules/xen.if
index fd96303..8c43c28 100644
--- a/tools/flask/policy/modules/xen.if
+++ b/tools/flask/policy/modules/xen.if
@@ -48,7 +48,8 @@ define(`declare_build_label', `
define(`create_domain_common', `
allow $1 $2:domain { create max_vcpus setdomainmaxmem setaddrsize
getdomaininfo hypercall setvcpucontext getscheduler
- getvcpuinfo getaddrsize getaffinity setaffinity };
+ getvcpuinfo getaddrsize getaffinity setaffinity
+ settime setdomainhandle };
allow $1 $2:domain2 { set_cpuid settsc setscheduler setclaim
set_max_evtchn set_vnumainfo get_vnumainfo cacheflush
psr_cmt_op psr_cat_op soft_reset };
--
1.9.1
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next reply other threads:[~2016-07-07 13:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-07 13:45 Anshul [this message]
2016-07-07 14:49 ` [PATCH] XSM/policy: Allow the source domain access to settime and setdomainhandle domctls while creating domain Daniel De Graaf
2016-07-07 14:52 ` Wei Liu
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=1467899147-22315-1-git-send-email-anshul.makkar@citrix.com \
--to=xen-devel@lists.xen.org \
--cc=anshul.makkar@citrix.com \
--cc=dgdegra@tycho.nsa.gov \
--cc=ian.jackson@eu.citrix.com \
--cc=wei.liu2@citrix.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).