Disable ads (and more) with a premium pass for a one time $4.99 payment
AppArmor profiles for applications are defined in the /etc/apparmor.d directory. This directory contains the configuration files that describe the security policies for individual applications. Each profile in this directory specifies what resources an application can access, thereby enforcing restrictions aimed at preventing unauthorized actions by applications.
The organization of AppArmor profiles in /etc/apparmor.d allows system administrators to easily manage and edit these profiles as needed for security purposes. It is the standard location where custom and system-generated profiles are stored.
Other directories mentioned, such as /lib/apparmor.d, are typically used for system default profiles and are not intended for the user-defined or custom profiles. The path /usr/apparmor.d is not a valid standard path for AppArmor profiles, and while /etc/apparmor.d/turntables could theoretically exist, it would refer to a specific profile rather than the directory containing all profiles. The main directory for profile definitions remains /etc/apparmor.d, which is crucial for configuring and managing AppArmor's security settings effectively.