From c6a280e79a4cfe1a986d5288b92c0ac059aed035 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Tue, 31 Mar 2015 09:31:56 -0400 Subject: [PATCH] Add more info for libsepol patch. List known test failures seen without this patch. --- ...bsepol-2.4-mls-semantic-level-expand.patch | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/patches/libsepol-2.4-mls-semantic-level-expand.patch b/patches/libsepol-2.4-mls-semantic-level-expand.patch index ca229bd..bd6d666 100644 --- a/patches/libsepol-2.4-mls-semantic-level-expand.patch +++ b/patches/libsepol-2.4-mls-semantic-level-expand.patch @@ -1,3 +1,34 @@ +This libsepol patch is needed if you see these unit test failures: + +====================================================================== +FAIL: test_306_level_lookup_cat_not_assoc (tests.policyrep.mls.LevelFactoryTest) +Level lookup with category not associated with sensitivity. +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pebenito/projects/setools/tests/policyrep/mls.py", line 121, in test_306_level_lookup_cat_not_assoc + self.assertRaises(InvalidLevel, level_factory, self.p.policy, "s0:c0,c4") +AssertionError: InvalidLevel not raised by level_factory + +====================================================================== +FAIL: test_406_range_lookup_invalid_range_low (tests.policyrep.mls.RangeFactoryTest) +Range lookup with an invalid range (low). +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pebenito/projects/setools/tests/policyrep/mls.py", line 168, in test_406_range_lookup_invalid_range_low + self.assertRaises(InvalidRange, range_factory, self.p.policy, "s0:c13-s2:c13") +AssertionError: InvalidRange not raised by range_factory + +====================================================================== +FAIL: test_407_range_lookup_invalid_range_high (tests.policyrep.mls.RangeFactoryTest) +Range lookup with an invalid range (high). +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pebenito/projects/setools/tests/policyrep/mls.py", line 173, in test_407_range_lookup_invalid_range_high + self.assertRaises(InvalidRange, range_factory, self.p.policy, "s0-s0:c13") +AssertionError: InvalidRange not raised by range_factory + +---------------------------------------------------------------------- + diff --git a/libsepol/src/expand.c b/libsepol/src/expand.c index 467f7a7..3193ef5 100644 --- a/libsepol/src/expand.c