]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
xsm/flask: Fix build following "xsm: correct AVC lookups for two sysctls"
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 10 Aug 2017 13:13:00 +0000 (14:13 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 10 Aug 2017 14:40:38 +0000 (15:40 +0100)
avc_current_has_perm() takes 4 arguments, not 3.  Spotted by a Travis
randconfig run which actually turned XSM on.

https://travis-ci.org/xen-project/xen/jobs/263063220

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
xen/xsm/flask/hooks.c

index 17560b152c1c184e2cfb391af7e1430c6dd540f5..91146275bb057ae00a9b32fa94fedd70961a8c95 100644 (file)
@@ -815,11 +815,11 @@ static int flask_sysctl(int cmd)
 
     case XEN_SYSCTL_get_cpu_levelling_caps:
         return avc_current_has_perm(SECINITSID_XEN, SECCLASS_XEN2,
-                                    XEN2__GET_CPU_LEVELLING_CAPS);
+                                    XEN2__GET_CPU_LEVELLING_CAPS, NULL);
 
     case XEN_SYSCTL_get_cpu_featureset:
         return avc_current_has_perm(SECINITSID_XEN, SECCLASS_XEN2,
-                                    XEN2__GET_CPU_FEATURESET);
+                                    XEN2__GET_CPU_FEATURESET, NULL);
 
     case XEN_SYSCTL_livepatch_op:
         return avc_current_has_perm(SECINITSID_XEN, SECCLASS_XEN2,