[apparmor] [patch] [2.9] Fix uninitialized capability entries

John Johansen john.johansen at canonical.com
Thu Feb 27 21:26:01 UTC 2014


The capability entries in the profile are not being correctly initialized to 0

Signed-off-by: John Johansen <john.johansen at canonical.com>

=== modified file 'parser/profile.h'
--- parser/profile.h	2013-12-10 20:42:50 +0000
+++ parser/profile.h	2014-02-27 21:23:17 +0000
@@ -82,7 +82,7 @@
 	uint64_t deny;
 	uint64_t quiet;
 
-	capabilities(void) { allow = audit = deny = quiet; }
+	capabilities(void) { allow = audit = deny = quiet = 0; }
 
 	void dump()
 		{




More information about the AppArmor mailing list