3
* Author: Machon Gregory, <mbgrego@tycho.ncsc.mil>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2,
7
* as published by the Free Software Foundation.
21
static void usage (int argCnt, const char *args[])
23
fprintf(stderr, "Usage: %s\n", args[0]);
27
int main (int argCnt, const char *args[])
35
xch = xc_interface_open();
38
fprintf(stderr, "Unable to create interface to xenctrl: %s\n",
44
ret = flask_getenforce(xch);
48
fprintf(stderr, "Unable to get enforcing mode: %s\n",
56
printf("Enforcing\n");
58
printf("Permissive\n");
63
xc_interface_close(xch);