diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2015-05-06 08:40:12 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-05-11 10:02:23 +0200 |
commit | 2ed3ac5190cd8f92d671e00837a360bd92cf150c (patch) | |
tree | 00825b1d7a6487f9e32d3e50809ba683f04904f5 /src/tests | |
parent | 79d0c56ea407a1747f7aa30f916613da314f2ac5 (diff) | |
download | sssd-2ed3ac5190cd8f92d671e00837a360bd92cf150c.tar.gz sssd-2ed3ac5190cd8f92d671e00837a360bd92cf150c.tar.xz sssd-2ed3ac5190cd8f92d671e00837a360bd92cf150c.zip |
SELINUX: Avoid disconnecting disconnected handle
Resolves:
https://fedorahosted.org/sssd/ticket/2649
libsemanage is very strict about its API usage and actually doesn't
allow disconnecting a handle that is not connected. The unpatched code
would fail with:
selinux_child: handle.c:231: semanage_disconnect: Assertion `sh !=
((void *)0) && sh->funcs != ((void *)0) && sh->funcs->disconnect !=
((void *)0)' failed.
If semanage_connect() failed.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
(cherry picked from commit 589a8760b38d9e2dfa278764af12d59e1487fe07)
Diffstat (limited to 'src/tests')
0 files changed, 0 insertions, 0 deletions