[apparmor] GPG signature

2015-12-20 Thread Christian Boltz
Hello, starting today, I'll sign all mails to the AppArmor mailinglist with my GPG key to ensure the mail integrity, which is especially important when sending or acking patches. My GPG key is: pub rsa4096/63C82F1C 2005-10-06 [expires: 2016-12-31] Key fingerprint = 70CA A060 DE

[apparmor] [patch] split off _aare_or_all()

2015-12-20 Thread Christian Boltz
Hello, we need to check a rule part if it is *Rule.ALL or a string at various places. Therefore split off the checks in PtraceRule's and SignalRule's __init__() to the new _aare_or_alll() function in BaseRule. This also makes the *Rule __init__() much more readable because we now have one line to

Re: [apparmor] [patch] split off _aare_or_all()

2015-12-20 Thread Christian Boltz
Hello, Am Sonntag, 20. Dezember 2015 schrieb Christian Boltz: > we need to check a rule part if it is *Rule.ALL or a string at various > places. Therefore split off the checks in PtraceRule's and > SignalRule's __init__() to the new _aare_or_alll() function in > BaseRule. > > This also makes the

[apparmor] [patch] split off _is_covered_*() helper functions

2015-12-20 Thread Christian Boltz
Hello, is_covered_localvars() in the rule classes need the same set of checks again and again. This patch adds the helper functions _is_covered_list(), _is_covered_aare() and _is_covered_plain() to check against lists, AARE and plain variables like str. The helpers check if the values from the ot