[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] XSM-Policy: allow source domain access to setpodtarget and getpodtarget for ballooning.



commit 2ad72c0b4676d62cc72447882306c3df51a6a0f1
Author:     Anshul Makkar <anshul.makkar@xxxxxxxxxx>
AuthorDate: Thu Jul 14 15:46:12 2016 +0100
Commit:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Thu Jul 14 15:50:04 2016 +0100

    XSM-Policy: allow source domain access to setpodtarget and getpodtarget for 
ballooning.
    
    Access to setpodtarget and getpodtarget is required by dom0 to set the 
balloon
    targets for domU. The patch gives source domain (dom0) access to set
    this target for domU and resolve the following permission denied erro
    message during ballooning :
    avc:  denied  { setpodtarget } for domid=0 target=9
    scontext=system_u:system_r:dom0_t
    tcontext=system_u:system_r:domU_t tclass=domain
    
    Signed-off-by: Anshul Makkar <anshul.makkar@xxxxxxxxxx>
    Acked-by: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
---
 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 8c43c28..dbefa1e 100644
--- a/tools/flask/policy/modules/xen.if
+++ b/tools/flask/policy/modules/xen.if
@@ -83,7 +83,8 @@ define(`create_domain_build_label', `
 define(`manage_domain', `
        allow $1 $2:domain { getdomaininfo getvcpuinfo getaffinity
                        getaddrsize pause unpause trigger shutdown destroy
-                       setaffinity setdomainmaxmem getscheduler resume };
+                       setaffinity setdomainmaxmem getscheduler resume
+                       setpodtarget getpodtarget };
     allow $1 $2:domain2 set_vnumainfo;
 ')
 
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.