s/hook/method

This commit is contained in:
Joris Vink 2019-10-04 11:34:49 +02:00
parent b0cf42726d
commit 6c8970651c

View File

@ -491,7 +491,7 @@ kore_python_seccomp_hook(const char *method)
struct kore_runtime *rt; struct kore_runtime *rt;
PyObject *func, *result; PyObject *func, *result;
if ((func = kore_module_getsym(hook, &rt)) == NULL) if ((func = kore_module_getsym(method, &rt)) == NULL)
return; return;
if (rt->type != KORE_RUNTIME_PYTHON) if (rt->type != KORE_RUNTIME_PYTHON)
@ -506,7 +506,7 @@ kore_python_seccomp_hook(const char *method)
result = PyObject_CallFunctionObjArgs(func, result = PyObject_CallFunctionObjArgs(func,
(PyObject *)py_seccomp, NULL); (PyObject *)py_seccomp, NULL);
kore_python_log_error(hook); kore_python_log_error(method);
kore_seccomp_filter("koreapp", py_seccomp->filters, py_seccomp->elm); kore_seccomp_filter("koreapp", py_seccomp->filters, py_seccomp->elm);