Update for commit 494eb683f3d1 ("libselinux: add getpidprevcon"). Signed-off-by: Christian Göttsche <cgzones@xxxxxxxxxxxxxx> --- libselinux/src/selinuxswig_python_exception.i | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/libselinux/src/selinuxswig_python_exception.i b/libselinux/src/selinuxswig_python_exception.i index a02f4923..e5e55a79 100644 --- a/libselinux/src/selinuxswig_python_exception.i +++ b/libselinux/src/selinuxswig_python_exception.i @@ -79,6 +79,22 @@ } } +%exception getpidprevcon { + $action + if (result < 0) { + PyErr_SetFromErrno(PyExc_OSError); + SWIG_fail; + } +} + +%exception getpidprevcon_raw { + $action + if (result < 0) { + PyErr_SetFromErrno(PyExc_OSError); + SWIG_fail; + } +} + %exception getexeccon { $action if (result < 0) { -- 2.42.0