xen: fix xsm build
PATCH 1/1 xen: fix xsm build
Commit e8d461497d9 renamed gcov_op to coverage_op but forgot to change XSM handles.
---
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Roger Pau Monne <[email protected]>
Cc: Daniel De Graaf <[email protected]>
--- tools/flask/policy/modules/dom0.te | 2 +- xen/xsm/flask/hooks.c | 4 ++-- xen/xsm/flask/policy/access_vectors | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-)
tools/flask/policy/modules/dom0.te +1 -1
@@ -16,7 +16,7 @@ allow dom0_t xen_t:xen { allow dom0_t xen_t:xen2 { resource_op psr_cmt_op psr_alloc pmu_ctrl get_symbol get_cpu_levelling_caps get_cpu_featureset livepatch_op - gcov_op set_parameter + coverage_op set_parameter }; # Allow dom0 to use all XENVER_ subops that have checks.
xen/xsm/flask/hooks.c +2 -2
@@ -825,9 +825,9 @@ static int flask_sysctl(int cmd)case XEN_SYSCTL_livepatch_op:return avc_current_has_perm (SECINITSID_XEN ,SECCLASS_XEN2 ,XEN2__LIVEPATCH_OP ,NULL ); -case XEN_SYSCTL_gcov_op: +case XEN_SYSCTL_coverage_op:return avc_current_has_perm (SECINITSID_XEN ,SECCLASS_XEN2 , -XEN2__GCOV_OP ,NULL ); +XEN2__COVERAGE_OP ,NULL );case XEN_SYSCTL_set_parameter:return avc_current_has_perm (SECINITSID_XEN ,SECCLASS_XEN2 ,XEN2__SET_PARAMETER ,NULL );
xen/xsm/flask/policy/access_vectors +2 -2
@@ -99,8 +99,8 @@ class xen2 get_cpu_featureset # XEN_SYSCTL_livepatch_op livepatch_op -# XEN_SYSCTL_gcov_op - gcov_op +# XEN_SYSCTL_coverage_op + coverage_op # XEN_SYSCTL_set_parameter set_parameter }
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 4 lines · Wei Liu
Commit
e8d461497d9renamedgcov_optocoverage_opbut forgot to change XSM handles.Signed-off-by Wei Liu <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 4 lines · Wei Liu
Commit
e8d461497d9renamedgcov_optocoverage_opbut forgot to change XSM handles.Signed-off-by Wei Liu <[email protected]>
Thanks!
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Ian Jackson
Acked-byRoger Pau Monné writes ("Re: [PATCH] xen: fix xsm build"):
Quoted 7 lines · Wei Liu
Quoted 4 lines
Commit
e8d461497d9renamedgcov_optocoverage_opbut forgot to change XSM handles.Signed-off-by Wei Liu <[email protected]>Reviewed-by Roger Pau Monné <[email protected]>
(in case you feel it's needed)
Thanks,
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 4 lines · Wei Liu
Commit
e8d461497d9renamedgcov_optocoverage_opbut forgot to change XSM handles.Signed-off-by Wei Liu <[email protected]>
Osstest's ARM build is blocked by this now.
I will wait until 5pm UK time for Daniel to express his opinion.
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 26.01.18 at 12:45, <[email protected]> wrote:
Quoted 4 lines · Wei Liu
Commit
e8d461497d9renamedgcov_optocoverage_opbut forgot to change XSM handles.Signed-off-by Wei Liu <[email protected]>Osstest's ARM build is blocked by this now.
I will wait until 5pm UK time for Daniel to express his opinion.
I don't think such pure renaming warrants waiting, the more that you've got 3 other acks already iirc.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Jan Beulich writes ("Re: [PATCH] xen: fix xsm build"):
Quoted 5 lines · On 26.01.18 at 12:45, <[email protected]> wrote:
Quoted 1 line
I will wait until 5pm UK time for Daniel to express his opinion.
I don't think such pure renaming warrants waiting, the more that you've got 3 other acks already iirc.
And I committed this this morning :-).
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel