diff --exclude-from=exclude -N -u -r nsasepolgen/src/sepolgen/audit.py policycoreutils-2.0.49/sepolgen-1.0.11/src/sepolgen/audit.py --- nsasepolgen/src/sepolgen/audit.py 2008-01-23 14:36:29.000000000 -0500 +++ policycoreutils-2.0.49/sepolgen-1.0.11/src/sepolgen/audit.py 2008-05-28 10:11:36.373597000 -0400 @@ -241,14 +241,17 @@ def from_split_string(self, recs): AuditMessage.from_split_string(self, recs) dict={} + ctr = 0 for i in recs: + ctr = ctr + 1 t = i.split('=') if len(t) < 2: + if t[0] == "context": + self.type = refpolicy.SecurityContext(recs[ctr]).type continue dict[t[0]]=t[1] try: self.role = refpolicy.SecurityContext(dict["scontext"]).role - self.type = refpolicy.SecurityContext(dict["tcontext"]).type except: raise ValueError("Split string does not represent a valid compute sid message") def output(self): diff --exclude-from=exclude -N -u -r nsasepolgen/src/sepolgen/refparser.py policycoreutils-2.0.49/sepolgen-1.0.11/src/sepolgen/refparser.py --- nsasepolgen/src/sepolgen/refparser.py 2008-01-23 14:36:29.000000000 -0500 +++ policycoreutils-2.0.49/sepolgen-1.0.11/src/sepolgen/refparser.py 2008-05-16 11:27:03.000000000 -0400 @@ -919,7 +919,7 @@ def list_headers(root): modules = [] support_macros = None - blacklist = ["init.if", "inetd.if", "uml.if", "thunderbird.if"] + blacklist = ["uml.if", "thunderbird.if"] for dirpath, dirnames, filenames in os.walk(root): for name in filenames: