Skip to contentSkip to conversation

XSM/policy: Allow the source domain access to settime and setdomainhandle domctls while creating domain.

PATCH Applied Anshul Makkar [email protected] 3 participants 3 messages Jul 7, 2016

lore
Share & tools
lore

Anshul Makkar [email protected]

author
#0 lore raw

PATCH 1/1 XSM/policy: Allow the source domain access to settime and setdomainhandle domctls while creating domain.

From: Anshul Makkar <[email protected]>

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

---
 tools/flask/policy/modules/xen.if | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tools/flask/policy/modules/xen.if +2 -1
index fd96303..8c43c28 100644
@@ -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 };
Signature · 7 lines
1.9.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · On 07/07/2016 09:45 AM, [email protected] wrote:

From: Anshul Makkar <[email protected]>

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

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Applied
#2 lore raw
Quoted 8 lines · Daniel De Graaf
Quoted 7 lines · On 07/07/2016 09:45 AM, [email protected] wrote:

From: Anshul Makkar <[email protected]>

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

Quoted 6 lines
Quoted 4 lines

avc: denied { settime } for domid=0 target=1 scontext=system_u:system_r:dom0_t tcontext=system_u:system_r:domU_t tclass=domain

Queued. Thank you both.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel