aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/xl_cmdtable.c
diff options
context:
space:
mode:
authorMachon Gregory <mbgrego@tycho.ncsc.mil>2011-06-02 17:32:18 +0100
committerMachon Gregory <mbgrego@tycho.ncsc.mil>2011-06-02 17:32:18 +0100
commit8acc9d512e07e1134709cb0dd485853ef54a7873 (patch)
tree1d207a0e9d59ffe3efc17132c05e0faf7df7cfa9 /tools/libxl/xl_cmdtable.c
parent7b7866eb2689ba6334d4beb3e1a63afa376bab90 (diff)
downloadxen-8acc9d512e07e1134709cb0dd485853ef54a7873.tar.gz
xen-8acc9d512e07e1134709cb0dd485853ef54a7873.tar.bz2
xen-8acc9d512e07e1134709cb0dd485853ef54a7873.zip
libxl: flask xsm support
Adds support for assigning a label to domains, obtaining and setting the current enforcing mode, and loading a policy with xl command and libxl header when the Flask XSM is in use. Adheres to the changes made by the patch to remove exposure of libxenctrl/libxenstore headers via libxl.h. Signed-Off-By: Machon Gregory <mbgrego@tycho.ncsc.mil> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/xl_cmdtable.c')
-rw-r--r--tools/libxl/xl_cmdtable.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/tools/libxl/xl_cmdtable.c b/tools/libxl/xl_cmdtable.c
index b14fb377f5..044c24d6b1 100644
--- a/tools/libxl/xl_cmdtable.c
+++ b/tools/libxl/xl_cmdtable.c
@@ -36,7 +36,8 @@ struct cmd_spec cmd_table[] = {
"List information about all/some domains",
"[options] [Domain]\n",
"-l, --long Output all VM details\n"
- "-v, --verbose Prints out UUIDs",
+ "-v, --verbose Prints out UUIDs and security context\n"
+ "-Z, --context Prints out security context"
},
{ "destroy",
&main_destroy,
@@ -364,6 +365,21 @@ struct cmd_spec cmd_table[] = {
"Splits up the machine into one CPU pool per NUMA node",
"",
},
+ { "getenforce",
+ &main_getenforce,
+ "Returns the current enforcing mode of the Flask Xen security module",
+ "",
+ },
+ { "setenforce",
+ &main_setenforce,
+ "Sets the current enforcing mode of the Flask Xen security module",
+ "<1|0|Enforcing|Permissive>",
+ },
+ { "loadpolicy",
+ &main_loadpolicy,
+ "Loads a new policy int the Flask Xen security module",
+ "<policy file>",
+ },
};
int cmdtable_len = sizeof(cmd_table)/sizeof(struct cmd_spec);