alexmurray / apparmor-mode

Emacs major mode for editing AppArmor Policies
GNU General Public License v3.0
7 stars 3 forks source link

Fix regexp for Access Mode and rule path #3

Closed kuanyui closed 9 months ago

kuanyui commented 10 months ago

According to man apparmor.d, Access Mode should add k:

Access Modes
       m       - allow PROT_EXEC with mmap(2) calls
       l       - link
       k       - lock

and brackets [] are commonly used as RegExp in file path matching of rules.

The following examples are from the default profiles of openSUSE:

a b c

alexmurray commented 10 months ago

Thanks for this - can you please check my suggestion on the use of square brackets? Thanks.