Skip to content

Commit

Permalink
libselinux: update Python binding
Browse files Browse the repository at this point in the history
Update for commit 494eb68 ("libselinux: add getpidprevcon").

Signed-off-by: Christian Göttsche <[email protected]>
Acked-by: James Carter <[email protected]>
  • Loading branch information
cgzones authored and jwcart2 committed Nov 15, 2023
1 parent d6967d8 commit 9fcf4cc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions libselinux/src/selinuxswig_python_exception.i
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9fcf4cc

Please sign in to comment.