aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python
diff options
context:
space:
mode:
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>2012-02-06 05:03:32 -0800
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>2012-02-06 05:03:32 -0800
commitde9eedb0d2fec5003e528c8d8b0f772a587c6049 (patch)
treeb3d9016db22e79d1df824a6318abbb4e819cd7b1 /tools/python
parent52ff92ec89ea79108bf3347b19eb5d35fac9d2e1 (diff)
downloadxen-de9eedb0d2fec5003e528c8d8b0f772a587c6049.tar.gz
xen-de9eedb0d2fec5003e528c8d8b0f772a587c6049.tar.bz2
xen-de9eedb0d2fec5003e528c8d8b0f772a587c6049.zip
tools/flask: remove libflask
This library has been deprecated since July 2010; remove the in-tree users and library. Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'tools/python')
-rw-r--r--tools/python/setup.py2
-rw-r--r--tools/python/xen/lowlevel/flask/flask.c13
2 files changed, 7 insertions, 8 deletions
diff --git a/tools/python/setup.py b/tools/python/setup.py
index 81540bcf49..e9061c871b 100644
--- a/tools/python/setup.py
+++ b/tools/python/setup.py
@@ -48,7 +48,7 @@ flask = Extension("flask",
include_dirs = [ PATH_XEN, PATH_LIBXC, "xen/lowlevel/flask",
"../flask/libflask/include" ],
library_dirs = [ PATH_LIBXC, "../flask/libflask" ],
- libraries = [ "xenctrl", "flask" ],
+ libraries = [ "xenctrl" ],
depends = [ PATH_LIBXC + "/libxenctrl.so",
XEN_ROOT + "/tools/flask/libflask/libflask.so" ],
sources = [ "xen/lowlevel/flask/flask.c" ])
diff --git a/tools/python/xen/lowlevel/flask/flask.c b/tools/python/xen/lowlevel/flask/flask.c
index 64e8d639b5..c3fcf3b853 100644
--- a/tools/python/xen/lowlevel/flask/flask.c
+++ b/tools/python/xen/lowlevel/flask/flask.c
@@ -12,7 +12,6 @@
#include <Python.h>
#include <xenctrl.h>
-#include <libflask.h>
#define PKG "xen.lowlevel.flask"
#define CLS "flask"
@@ -58,7 +57,7 @@ static PyObject *pyflask_context_to_sid(PyObject *self, PyObject *args,
return PyErr_SetFromErrno(xc_error_obj);
}
- ret = flask_context_to_sid(xc_handle, buf, len, &sid);
+ ret = xc_flask_context_to_sid(xc_handle, buf, len, &sid);
xc_interface_close(xc_handle);
@@ -92,7 +91,7 @@ static PyObject *pyflask_sid_to_context(PyObject *self, PyObject *args,
return PyErr_SetFromErrno(xc_error_obj);
}
- ret = flask_sid_to_context(xc_handle, sid, ctx, ctx_len);
+ ret = xc_flask_sid_to_context(xc_handle, sid, ctx, ctx_len);
xc_interface_close(xc_handle);
@@ -121,7 +120,7 @@ static PyObject *pyflask_load(PyObject *self, PyObject *args, PyObject *kwds)
return PyErr_SetFromErrno(xc_error_obj);
}
- ret = flask_load(xc_handle, policy, len);
+ ret = xc_flask_load(xc_handle, policy, len);
xc_interface_close(xc_handle);
@@ -143,7 +142,7 @@ static PyObject *pyflask_getenforce(PyObject *self)
return PyErr_SetFromErrno(xc_error_obj);
}
- ret = flask_getenforce(xc_handle);
+ ret = xc_flask_getenforce(xc_handle);
xc_interface_close(xc_handle);
@@ -173,7 +172,7 @@ static PyObject *pyflask_setenforce(PyObject *self, PyObject *args,
return PyErr_SetFromErrno(xc_error_obj);
}
- ret = flask_setenforce(xc_handle, mode);
+ ret = xc_flask_setenforce(xc_handle, mode);
xc_interface_close(xc_handle);
@@ -209,7 +208,7 @@ static PyObject *pyflask_access(PyObject *self, PyObject *args,
return PyErr_SetFromErrno(xc_error_obj);
}
- ret = flask_access(xc_handle, scon, tcon, tclass, req, &allowed, &decided,
+ ret = xc_flask_access(xc_handle, scon, tcon, tclass, req, &allowed, &decided,
&auditallow, &auditdeny, &seqno);
xc_interface_close(xc_handle);