xsm:schedop: introduce vcpuinfo permissions verification
PATCH 1/1 xsm:schedop: introduce vcpuinfo permissions verification
From: Andrii Anisov <[email protected]>
Introduce per-vcpu scheduler operations permission verification. As long as Xvcpuinfo are in fact scheduler configuration manipulations there is no need to introduce specific access vectors.
--- xen/xsm/flask/hooks.c | 2 ++ xen/xsm/flask/policy/access_vectors | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-)
xen/xsm/flask/hooks.c +2 -0
@@ -532,9 +532,11 @@ static int flask_domctl_scheduler_op(struct domain *d, int op)switch ( op ) {case XEN_DOMCTL_SCHEDOP_putinfo: +case XEN_DOMCTL_SCHEDOP_putvcpuinfo:return current_has_perm (d,SECCLASS_DOMAIN2 ,DOMAIN2__SETSCHEDULER );case XEN_DOMCTL_SCHEDOP_getinfo: +case XEN_DOMCTL_SCHEDOP_getvcpuinfo:return current_has_perm (d,SECCLASS_DOMAIN ,DOMAIN__GETSCHEDULER );default :
xen/xsm/flask/policy/access_vectors +2 -2
@@ -71,9 +71,9 @@ class xen tmem_op # XEN_SYSCTL_tmem_op command of tmem (part of sysctl) tmem_control -# XEN_SYSCTL_scheduler_op with XEN_DOMCTL_SCHEDOP_getinfo, XEN_SYSCTL_sched_id +# XEN_SYSCTL_scheduler_op with XEN_DOMCTL_SCHEDOP_getinfo, XEN_SYSCTL_sched_id, XEN_DOMCTL_SCHEDOP_getvcpuinfo getscheduler -# XEN_SYSCTL_scheduler_op with XEN_DOMCTL_SCHEDOP_putinfo +# XEN_SYSCTL_scheduler_op with XEN_DOMCTL_SCHEDOP_putinfo, XEN_DOMCTL_SCHEDOP_putvcpuinfo setscheduler }
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Dear All,
Any comments for the patch?
It addressed the issue mentioned here: https://lists.xenproject.org/archives/html/xen-devel/2017-07/msg00452.html
Signature · 8 lines
*Andrii Anisov* _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 8 lines · Andrii Anisov
Dear All,
Any comments for the patch?
It addressed the issue mentioned here:
https://lists.xenproject.org/archives/html/xen-devel/2017-07/msg00452
.html
Oops, sorry, I had missed it.
Now I've replied. I think it still needs a xsm / flask Ack.
Thanks and Regards,
Dario
Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Software Engineer @ SUSE https://www.suse.com/
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 9 lines · Andrii Anisov
From: Andrii Anisov <[email protected]>
Introduce per-vcpu scheduler operations permission verification. As long as Xvcpuinfo are in fact scheduler configuration manipulations
there is no need to introduce specific access vectors.Signed-off-by Andrii Anisov <[email protected]>
Regards,
Dario
Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Software Engineer @ SUSE https://www.suse.com/
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 7 lines · Andrii Anisov
From: Andrii Anisov <[email protected]>
Introduce per-vcpu scheduler operations permission verification. As long as Xvcpuinfo are in fact scheduler configuration manipulations there is no need to introduce specific access vectors.
Signed-off-by Andrii Anisov <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel