commit | fd4d564deab0010b5719c65b061988ac2d7f6f07 | [log] [tgz] |
---|---|---|
author | Eric Paris <eparis@redhat.com> | Wed Apr 04 13:47:11 2012 -0400 |
committer | chrmhoffmann <chrmhoffmann@gmail.com> | Sun Apr 05 10:15:09 2020 +0200 |
tree | d396481697959b736094d49968e1fe95f25d0e26 | |
parent | 8c36df1466aa2c5f8d88c1c438cb6500346fdc91 [diff] |
SELinux: if sel_make_bools errors don't leave inconsistent state commit 154c50ca4eb9ae472f50b6a481213e21ead4457d upstream. We reset the bool names and values array to NULL, but do not reset the number of entries in these arrays to 0. If we error out and then get back into this function we will walk these NULL pointers based on the belief that they are non-zero length. Signed-off-by: Eric Paris <eparis@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>