[apparmor] [patch 29/26] include rules class entries when dumping profiles

Steve Beattie steve at nxnw.org
Thu Apr 3 18:04:07 UTC 2014


This patch adds the newer rules class entries (e.g. ptrace, signals)
when dumping profiles (invoking the parser with the -dd argument).

Signed-off-by: Steve Beattie <steve at nxnw.org>
---
 parser/profile.h |    4 ++++
 1 file changed, 4 insertions(+)

Index: b/parser/profile.h
===================================================================
--- a/parser/profile.h
+++ b/parser/profile.h
@@ -223,6 +223,10 @@ public:
 		if (entries)
 			debug_cod_entries(entries);
 
+		for (RuleList::iterator i = rule_ents.begin(); i != rule_ents.end(); i++) {
+			(*i)->dump(cout);
+		}
+
 		printf("\n");
 		hat_table.dump();
 	}

-- 
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20140403/223e1953/attachment.pgp>


More information about the AppArmor mailing list