Os perfis do AppArmor usando um caminho desconexo do comando para o nome do arquivo são apenas uma convenção. De man 7 apparmor
:
Profiles are traditionally stored in files in
/etc/apparmor.d/
under filenames with the convention of replacing the/
in pathnames with.
(except for the root/
) so profiles are easier to manage (e.g. the/usr/sbin/nscd
profile would be namedusr.sbin.nscd
).
O nome do perfil, se contiver um arquivo glob, se aplica aos arquivos correspondidos por esse glob. De a referência de política principal do AppArmor :
The attachment specification is used by AppArmor to determine which executables a profile will attach to. If alternate profile name is not supplied the attachment specification is also used as the profiles name and if an attachment specification is not specified a profile name must be provided.
The name of a profile is very import in AppArmor. It provides not only a name(s) that users can associate to the set of profile rules, but is also used for labeling, ipc, and in the case that the name is an attachment specification it determines to which executables the profile attaches.