commit | 7abbda3326fc81ed079d45be9a328897c6336d32 | [log] [tgz] |
---|---|---|
author | James Carter <jwcart2@tycho.nsa.gov> | Tue Apr 12 11:11:21 2016 -0400 |
committer | James Carter <jwcart2@tycho.nsa.gov> | Wed Apr 13 14:51:53 2016 -0400 |
tree | 8c686fe9849cc22890ba0d7e0343494fecc7e526 | |
parent | 24dbe792ce6e1d6abca30d9361d36bc972e24809 [diff] |
libsepol/cil: Fixed bug in cil_type_match_any() An attribute that has no types associated with it should still match with itself, but ebitmap_match_any() will return false if there are no bits set in either bitmap. The solution is to check to see if the two datums passed into cil_type_match_any() are the same. This has the additional advantage of providing a quick match anytime the attributes are the same. Signed-off-by: James Carter <jwcart2@tycho.nsa.gov>