]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
xen/flask: Switch to using bool
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 23 Jun 2017 10:56:37 +0000 (10:56 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 10 Aug 2017 14:40:38 +0000 (15:40 +0100)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
xen/xsm/flask/flask_op.c
xen/xsm/flask/include/avc.h

index 719c2d7efc6a87c99bc9dc0318d7613ead252565..15aa96b09f66afadcaffd511c6609157716cbd6a 100644 (file)
@@ -29,7 +29,7 @@ enum flask_bootparam_t __read_mostly flask_bootparam = FLASK_BOOTPARAM_ENFORCING
 static void parse_flask_param(char *s);
 custom_param("flask", parse_flask_param);
 
-bool_t __read_mostly flask_enforcing = 1;
+bool __read_mostly flask_enforcing = true;
 
 #define MAX_POLICY_SIZE 0x4000000
 
@@ -453,7 +453,7 @@ static int flask_security_load(struct xen_flask_load *load)
 {
     int ret;
     void *buf = NULL;
-    bool_t is_reload = ss_initialized;
+    bool is_reload = ss_initialized;
 
     ret = domain_has_security(current->domain, SECURITY__LOAD_POLICY);
     if ( ret )
index c153c8e20acf268af9fac07c631232c2b1daf23a..bfc69f4acdaf5397da3555aebd6c8ca3de20d638 100644 (file)
@@ -17,7 +17,7 @@
 #include "av_permissions.h"
 #include "security.h"
 
-extern bool_t flask_enforcing;
+extern bool flask_enforcing;
 
 /*
  * An entry in the AVC.