commit | 42e32227da3db728ca8ead4690a1147183fb223c | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Fri Apr 07 22:44:30 2017 +0200 |
committer | Stephen Smalley <sds@tycho.nsa.gov> | Tue Apr 11 14:33:04 2017 -0400 |
tree | 313291ce994183fa97fc30c1acd35f8c717b9eb7 | |
parent | 9d3091a6d3f1c4e40b67716aca740031699150a2 [diff] |
libsepol: refuse to load policies with no block Some functions assumes that p->global is not NULL. For example range_read() contains: p->global->enabled->range_tr_rules = rtr; However p->global may currently be NULL when loading a policy module with no avrule block. Avoid a NULL pointer dereference by making such a policy invalid. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>