apparmor/utils/apparmor/rule
Tyler Hicks 8935457c63 utils: Don't enforce ordering of dbus rule attributes
https://launchpad.net/bugs/1628286

The utils were enforcing that the dbus rule attributes were strictly
ordered in the following fashion:

 bus -> path -> interface -> member -> peer

However, the parser has always accepted the attributes in any order. If
the system contained a profile which did not use the strict ordering
enforced by the utils, the utils would refuse to operate at all.

This patch eases the restriction on the ordering at the expense of the
utils no longer being able to detect and reject a single attribute that
is repeated multiple times. In that situation, only the last occurrence
of the attribute will be honored by the utils.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Acked-by: Christian Boltz <apparmor@cboltz.de>
2017-02-28 23:04:24 +00:00
..
__init__.py [33/38] Add cleanup flag to *Ruleset.add() 2016-10-01 20:13:06 +02:00
capability.py [01/38] Pass 'strict' flag from is_equal to is_equal_localvars 2016-10-01 19:45:16 +02:00
change_profile.py [01/38] Pass 'strict' flag from is_equal to is_equal_localvars 2016-10-01 19:45:16 +02:00
dbus.py utils: Don't enforce ordering of dbus rule attributes 2017-02-28 23:04:24 +00:00
file.py [31/38] FileRule: add get_exec_rules_for_path() and get_exec_conflict_rules() 2016-10-01 20:12:01 +02:00
network.py [01/38] Pass 'strict' flag from is_equal to is_equal_localvars 2016-10-01 19:45:16 +02:00
ptrace.py [29/38] let _is_covered_aare() check against the AARE instead of the (str) regex 2016-10-01 20:08:10 +02:00
rlimit.py Beautify RlimitRule coverage report 2016-11-08 21:23:27 +01:00
signal.py [29/38] let _is_covered_aare() check against the AARE instead of the (str) regex 2016-10-01 20:08:10 +02:00