xsm: allow relevant permission during migrate and gpu-passthrough.
PATCH 1/1 xsm: allow relevant permission during migrate and gpu-passthrough.
During guest migrate allow permission to prevent spurious page faults.
Prevents these errors:
d73: Non-privileged (73) attempt to map I/O space 00000000
avc: denied { set_misc_info } for domid=0 target=11 scontext=system_u:system_r:dom0_t tcontext=system_u:system_r:domU_t tclass=domain
GPU passthrough for hvm guest:
avc: denied { send_irq } for domid=0 target=10
scontext=system_u:system_r:dom0_t
tcontext=system_u:system_r:domU_t tclass=hvm
---
tools/flask/policy/modules/xen.if | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tools/flask/policy/modules/xen.if +2 -2
@@ -49,7 +49,7 @@ define(`create_domain_common', ` allow $1 $2:domain { create max_vcpus setdomainmaxmem setaddrsize getdomaininfo hypercall setvcpucontext getscheduler getvcpuinfo getaddrsize getaffinity setaffinity - settime setdomainhandle getvcpucontext }; + settime setdomainhandle getvcpucontext set_misc_info }; 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 };
@@ -58,7 +58,7 @@ define(`create_domain_common', ` allow $1 $2:mmu { map_read map_write adjust memorymap physmap pinpage mmuext_op updatemp }; allow $1 $2:grant setup; allow $1 $2:hvm { cacheattr getparam hvmctl irqlevel pciroute sethvmc - setparam pcilevel trackdirtyvram nested altp2mhvm altp2mhvm_op }; + setparam pcilevel trackdirtyvram nested altp2mhvm altp2mhvm_op send_irq }; ') # create_domain(priv, target)
Signature · 7 lines
1.7.10.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 9 lines · Anshul Makkar
During guest migrate allow permission to prevent spurious page faults.
Prevents these errors:
d73: Non-privileged (73) attempt to map I/O space 00000000avc: denied {
set_misc_info} for domid=0 target=11 scontext=system_u:system_r:dom0_t tcontext=system_u:system_r:domU_t tclass=domain
Quoted 6 lines
GPU passthrough for hvm guest:
avc: denied {send_irq} for domid=0 target=10
scontext=system_u:system_r:dom0_t
tcontext=system_u:system_r:domU_t tclass=hvmSigned-off-by Anshul Makkar <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Wei Liu
AppliedQuoted 10 lines · Daniel De Graaf
Quoted 9 lines · Anshul Makkar
During guest migrate allow permission to prevent spurious page faults.
Prevents these errors:
d73: Non-privileged (73) attempt to map I/O space 00000000avc: denied {
set_misc_info} for domid=0 target=11 scontext=system_u:system_r:dom0_t tcontext=system_u:system_r:domU_t tclass=domain
Quoted 9 lines
Quoted 6 lines
GPU passthrough for hvm guest:
avc: denied {send_irq} for domid=0 target=10
scontext=system_u:system_r:dom0_t
tcontext=system_u:system_r:domU_t tclass=hvmSigned-off-by Anshul Makkar <[email protected]>Acked-by Daniel De Graaf <[email protected]>
Applied
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 10 lines · Daniel De Graaf
Quoted 9 lines · Anshul Makkar
During guest migrate allow permission to prevent spurious page faults.
Prevents these errors:
d73: Non-privileged (73) attempt to map I/O space 00000000avc: denied {
set_misc_info} for domid=0 target=11 scontext=system_u:system_r:dom0_t tcontext=system_u:system_r:domU_t tclass=domain
Quoted 9 lines
Quoted 6 lines
GPU passthrough for hvm guest:
avc: denied {send_irq} for domid=0 target=10
scontext=system_u:system_r:dom0_t
tcontext=system_u:system_r:domU_t tclass=hvmSigned-off-by Anshul Makkar <[email protected]>Acked-by Daniel De Graaf <[email protected]>
Daniel,
Should this be backported to 4.8?
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 16 lines · Doug Goldstein
Quoted 15 lines · Daniel De Graaf
Quoted 14 lines · Anshul Makkar
During guest migrate allow permission to prevent spurious page faults.
Prevents these errors:
d73: Non-privileged (73) attempt to map I/O space 00000000avc: denied {
set_misc_info} for domid=0 target=11 scontext=system_u:system_r:dom0_t tcontext=system_u:system_r:domU_t tclass=domainGPU passthrough for hvm guest:
avc: denied {send_irq} for domid=0 target=10
scontext=system_u:system_r:dom0_t
tcontext=system_u:system_r:domU_t tclass=hvm
Quoted 9 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Anshul Makkar <[email protected]>Acked-by Daniel De Graaf <[email protected]>Daniel,
Should this be backported to 4.8?
FWIW, Daniel's email is bouncing. Anshul, do you want to test/confirm?
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 22 lines · Doug Goldstein
Quoted 21 lines · Doug Goldstein
Quoted 19 lines · Daniel De Graaf
Quoted 9 lines · Anshul Makkar
During guest migrate allow permission to prevent spurious page faults.
Prevents these errors:
d73: Non-privileged (73) attempt to map I/O space 00000000avc: denied {
set_misc_info} for domid=0 target=11 scontext=system_u:system_r:dom0_t tcontext=system_u:system_r:domU_t tclass=domainQuoted 6 lines
GPU passthrough for hvm guest:
avc: denied {send_irq} for domid=0 target=10
scontext=system_u:system_r:dom0_t
tcontext=system_u:system_r:domU_t tclass=hvmSigned-off-by Anshul Makkar <[email protected]>Acked-by Daniel De Graaf <[email protected]>
Quoted 7 lines
Quoted 4 lines
Daniel,
Should this be backported to 4.8?
FWIW, Daniel's email is bouncing. Anshul, do you want to test/confirm?
Doug, yes, will backport and test.
Anshul
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 28 lines · Anshul Makkar
Quoted 27 lines · Doug Goldstein
Quoted 25 lines · Doug Goldstein
Quoted 10 lines · Daniel De Graaf
Quoted 9 lines · Anshul Makkar
During guest migrate allow permission to prevent spurious page faults.
Prevents these errors:
d73: Non-privileged (73) attempt to map I/O space 00000000avc: denied {
set_misc_info} for domid=0 target=11 scontext=system_u:system_r:dom0_t tcontext=system_u:system_r:domU_t tclass=domainQuoted 9 lines
Quoted 6 lines
GPU passthrough for hvm guest:
avc: denied {send_irq} for domid=0 target=10
scontext=system_u:system_r:dom0_t
tcontext=system_u:system_r:domU_t tclass=hvmSigned-off-by Anshul Makkar <[email protected]>Acked-by Daniel De Graaf <[email protected]>Daniel,
Should this be backported to 4.8?
Quoted 6 lines
Quoted 2 lines
FWIW, Daniel's email is bouncing. Anshul, do you want to test/confirm?
Doug, yes, will backport and test.
Anshul
CCing Jan for the backport.
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 30 lines
Quoted 1 line
Quoted 1 line · On 22.12.16 at 16:28, <[email protected]> wrote:
Quoted 28 lines · Anshul Makkar
Quoted 27 lines · Doug Goldstein
Quoted 25 lines · Doug Goldstein
Quoted 10 lines · Daniel De Graaf
Quoted 9 lines · Anshul Makkar
During guest migrate allow permission to prevent spurious page faults.
Prevents these errors:
d73: Non-privileged (73) attempt to map I/O space 00000000avc: denied {
set_misc_info} for domid=0 target=11 scontext=system_u:system_r:dom0_t tcontext=system_u:system_r:domU_t tclass=domainQuoted 9 lines
Quoted 6 lines
GPU passthrough for hvm guest:
avc: denied {send_irq} for domid=0 target=10
scontext=system_u:system_r:dom0_t
tcontext=system_u:system_r:domU_t tclass=hvmSigned-off-by Anshul Makkar <[email protected]>Acked-by Daniel De Graaf <[email protected]>Daniel,
Should this be backported to 4.8?
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
FWIW, Daniel's email is bouncing. Anshul, do you want to test/confirm?
Doug, yes, will backport and test.
Anshul
CCing Jan for the backport.
Well - I'll wait for the pending confirmation from Anshul (please Cc me on that one). Or wait - this is under tools/, in which case I'd rather leave this to Ian (so please Cc him when confirming).
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 19 lines · Doug Goldstein
Quoted 18 lines · Doug Goldstein
Quoted 17 lines · Daniel De Graaf
Quoted 15 lines · Anshul Makkar
During guest migrate allow permission to prevent spurious page faults.
Prevents these errors:
d73: Non-privileged (73) attempt to map I/O space 00000000avc: denied {
set_misc_info} for domid=0 target=11 scontext=system_u:system_r:dom0_t tcontext=system_u:system_r:domU_t tclass=domainGPU passthrough for hvm guest:
avc: denied {send_irq} for domid=0 target=10
scontext=system_u:system_r:dom0_t
tcontext=system_u:system_r:domU_t tclass=hvmSigned-off-by Anshul Makkar <[email protected]>
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Acked-by Daniel De Graaf <[email protected]>Daniel,
Should this be backported to 4.8?
Yes, I would consider this a candidate for backporting.
Quoted 1 line
FWIW, Daniel's email is bouncing. Anshul, do you want to test/confirm?
I believe this is fixed now; my email server was changed while I was gone for the holiday and apparently the change was not tested properly.
Signature · 7 lines
Daniel De Graaf National Security Agency _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 28 lines · Daniel De Graaf
Quoted 19 lines · Doug Goldstein
Quoted 18 lines · Doug Goldstein
Quoted 17 lines · Daniel De Graaf
Quoted 15 lines · Anshul Makkar
During guest migrate allow permission to prevent spurious page faults.
Prevents these errors:
d73: Non-privileged (73) attempt to map I/O space 00000000avc: denied {
set_misc_info} for domid=0 target=11 scontext=system_u:system_r:dom0_t tcontext=system_u:system_r:domU_t tclass=domainGPU passthrough for hvm guest:
avc: denied {send_irq} for domid=0 target=10
scontext=system_u:system_r:dom0_t
tcontext=system_u:system_r:domU_t tclass=hvmSigned-off-by Anshul Makkar <[email protected]>Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Acked-by Daniel De Graaf <[email protected]>Daniel,
Should this be backported to 4.8?
Quoted 7 lines
Yes, I would consider this a candidate for backporting.
Quoted 1 line
FWIW, Daniel's email is bouncing. Anshul, do you want to test/confirm?
I believe this is fixed now; my email server was changed while I was gone for the holiday and apparently the change was not tested properly.
Please backport the patch to stable-4.8. I have tested it.
Anshul
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
anshul makkar writes ("Re: [Xen-devel] [PATCH] xsm: allow relevant permission during migrate and gpu-passthrough."):
Quoted 1 line
Please backport the patch to stable-4.8. I have tested it.
Queued.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel