Skip to contentSkip to conversation

xen: fix xsm build

PATCH In review Wei Liu 5 participants 7 messages Jan 25, 2018 – Jan 26, 2018

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

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
index 07de3d5083..bf794d9bdd 100644
@@ -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
index 835b3d1a03..3533259f9f 100644
@@ -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
index 50dfc36c1c..e74d98d736 100644
@@ -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
Acked-by
#3 lore raw

Roger Pau Monné writes ("Re: [PATCH] xen: fix xsm build"):

Quoted 7 lines · Wei Liu
Quoted 4 lines

Commit e8d461497d9 renamed gcov_op to coverage_op but forgot to change XSM handles.

(in case you feel it's needed)

Thanks,
Ian.

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

#5 lore raw
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 e8d461497d9 renamed gcov_op to coverage_op but forgot to change XSM handles.

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

#6 lore raw

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