From de9eedb0d2fec5003e528c8d8b0f772a587c6049 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Mon, 6 Feb 2012 05:03:32 -0800 Subject: 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 Committed-by: Keir Fraser --- tools/python/setup.py | 2 +- tools/python/xen/lowlevel/flask/flask.c | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'tools/python') 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 #include -#include #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); -- cgit v1.2.3