Hello,
$subject.
Also make 'ruletypes' a dict pointing to the *Ruleset class, and change
ProfileStorage __init__() to iterate over 'ruleset'.
[ 04-move-ruletypes.diff ]
=== modified file ./utils/apparmor/aa.py
--- utils/apparmor/aa.py2017-07-09 18:40:49.205839507 +0200
+++ utils/apparm
Hello,
this patch moves ProfileStorage() from aa.py to the new profile_storage.py
and makes it a class. The variable name in __init__() changes (profile
-> self.data), but the content stays the same.
The ProfileStorage class acts like a dict(), but has some additional
checks for unknown keys in
Hello,
$subject.
This is a preparation to make the next patch smaller and easier to
read ;-)
[ 02-rename-profile_storage.diff ]
=== modified file ./utils/apparmor/aa.py
--- utils/apparmor/aa.py2017-07-09 12:16:52.986307169 +0200
+++ utils/apparmor/aa.py2017-07-09 16:33:42.19685
Hello all.
A couple of days ago, I decided to test '/etc/cron.daily/logrotate'
profile, to see how it will be working on 16.04 LTS Release, because all
the work was done a few months ago, but on "Precise Pangolin."
Anyway, everything seemed to be fine, until I've noticed some problems with
logs:
Hello,
Network rules are the only rule type that had this safety net - if
profile_data[profile][hat] really isn't initialized (which shouldn't
happen), things will break at lots of other places ;-)
[ 01-drop-network-safety-net.diff ]
=== modified file ./utils/apparmor/aa.py
--- utils/apparmor/a