Hello,

AppArmor rules are in most cases declarative so that the order doesn't 
matter (exception: before you can extend a variable with "+=" you have 
to initialize it with "=").

The current definition is technically not a bug, "just" confusing.
However, I agree that defining @{HOMEDIRS} before using it would make 
sense to make it less confusing for human parsers ;-)

I submitted a patch for re-ordering the variable definition upstream:
    https://gitlab.com/apparmor/apparmor/-/merge_requests/820

Since the change is more cosmetic, it will probably only be included in 
AppArmor 3.1 and newer. I don't expect to get it backported to the 3.0 
or 2.x branches.


Regards,

Christian Boltz
-- 
> Using the internet since 28.8kbit. Yes, I'm 'old'.
My first modem was 300 bits/sec, you young whipper snapper!  ;-)
[> Yamaban and James Knott in opensuse-factory]

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to