[apparmor] [patch] fix aa-autodep (and aa-genprof) to write a non-empty profile

Steve Beattie steve at nxnw.org
Wed Feb 26 22:36:37 UTC 2014


On Wed, Feb 26, 2014 at 11:24:36PM +0100, Christian Boltz wrote:
> Hello,
> 
> aa-autodep (and therefore also aa-genprof) created a nearly-empty 
> profile files with only tunables/global, but no profile. This patch 
> makes sure that the profile itsself is also written to the profile file.
> 
> Without the added line, filelist[prof_filename]['profiles'].keys()) in 
> serialize_profile was empty, which means the loop that writes the 
> profile was never executed.
> 
> I think this patch ranks very high on my typing-very-slow list - I 
> needed half an hour to hunt the bug down, so I typed about one character 
> per minute ;-)

Acked-by: Steve Beattie <steve at nxnw.org>

Thanks for tracking this down!

-- 
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/20140226/5dadac25/attachment.pgp>


More information about the AppArmor mailing list