2009-04-09 02:05:21 +00:00
|
|
|
diff --exclude-from=exclude -N -u -r nsasepolgen/src/sepolgen/access.py policycoreutils-2.0.62/sepolgen-1.0.16/src/sepolgen/access.py
|
|
|
|
--- nsasepolgen/src/sepolgen/access.py 2009-01-13 08:45:35.000000000 -0500
|
2009-05-05 18:51:52 +00:00
|
|
|
+++ policycoreutils-2.0.62/sepolgen-1.0.16/src/sepolgen/access.py 2009-04-21 14:54:12.000000000 -0400
|
2009-04-09 02:05:21 +00:00
|
|
|
@@ -313,7 +313,7 @@
|
|
|
|
|
|
|
|
def __len__(self):
|
|
|
|
"""Return the unique number of role allow statements."""
|
|
|
|
- return len(self.role_type.keys())
|
|
|
|
+ return len(self.role_types.keys())
|
|
|
|
|
|
|
|
def add(self, role, type):
|
|
|
|
if self.role_types.has_key(role):
|
2009-05-05 18:51:52 +00:00
|
|
|
diff --exclude-from=exclude -N -u -r nsasepolgen/src/sepolgen/audit.py policycoreutils-2.0.62/sepolgen-1.0.16/src/sepolgen/audit.py
|
|
|
|
--- nsasepolgen/src/sepolgen/audit.py 2008-08-28 09:34:24.000000000 -0400
|
|
|
|
+++ policycoreutils-2.0.62/sepolgen-1.0.16/src/sepolgen/audit.py 2009-04-24 13:19:39.000000000 -0400
|
|
|
|
@@ -47,6 +47,17 @@
|
|
|
|
stdout=subprocess.PIPE).communicate()[0]
|
|
|
|
return output
|
|
|
|
|
|
|
|
+def get_log_msgs():
|
|
|
|
+ """Obtain all of the avc and policy load messages from /var/log/messages.
|
|
|
|
+
|
|
|
|
+ Returns:
|
|
|
|
+ string contain all of the audit messages returned by /var/log/messages.
|
|
|
|
+ """
|
|
|
|
+ import subprocess
|
|
|
|
+ output = subprocess.Popen(["/bin/grep", "avc", "/var/log/messages"],
|
|
|
|
+ stdout=subprocess.PIPE).communicate()[0]
|
|
|
|
+ return output
|
|
|
|
+
|
|
|
|
# Classes representing audit messages
|
|
|
|
|
|
|
|
class AuditMessage:
|
2009-02-18 21:54:32 +00:00
|
|
|
diff --exclude-from=exclude -N -u -r nsasepolgen/src/sepolgen/refparser.py policycoreutils-2.0.62/sepolgen-1.0.16/src/sepolgen/refparser.py
|
2008-09-11 13:55:11 +00:00
|
|
|
--- nsasepolgen/src/sepolgen/refparser.py 2008-08-28 09:34:24.000000000 -0400
|
2009-05-05 18:51:52 +00:00
|
|
|
+++ policycoreutils-2.0.62/sepolgen-1.0.16/src/sepolgen/refparser.py 2009-04-21 14:54:12.000000000 -0400
|
2008-01-23 20:23:24 +00:00
|
|
|
@@ -919,7 +919,7 @@
|
2007-12-19 10:40:23 +00:00
|
|
|
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:
|