[apparmor] [patch] [3/3] Move 'ruletypes' to profile_storage.py

2017-07-09 Thread Christian Boltz
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

[apparmor] [patch] [2/3] Make ProfileStorage a class

2017-07-09 Thread Christian Boltz
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

[apparmor] [patch] [1/3] Rename profile_storage() to ProfileStorage()

2017-07-09 Thread Christian Boltz
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

[apparmor] [profile] /etc/cron.daily/logrotate: new rules and a couple of questions.

2017-07-09 Thread daniel curtis
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:

[apparmor] [patch] Drop safety net for network rules in parse_profile_data()

2017-07-09 Thread Christian Boltz
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