aa_check_perms(9)
okay bestie, welcome to aa_check_perms(9) β this one lives in the Kernel API Manual, and it's literally the function that does audit mode selection based on the perms set. π
π NAME π
aa_check_perms β do audit mode selection based on perms set
β¨ SYNOPSIS β¨
int aa_check_perms (struct aa_profile *profile , const struct aa_perms *perms , u32 request , struct apparmor_audit_data *ad , void (*cb)(struct audit_buffer *, void *) );
π«Ά ARGUMENTS π«Ά
profileβ the profile being checked πpermsβ perms computed for the request πrequestβ requested perms β¨adβ initialized audit structure (MAY BE NULLif not auditing) πcbβ callback fn for type specific fields (MAY BE NULL) π¦
π RETURN π
0 if permission, else error code. periodt. π―
π NOTE π
profile audit modes need to be set before calling by setting the perm masks appropriately. no cap, that's the setup vibe. π§
If not auditing then complain mode is not enabled and the error code will indicate whether there was an explicit deny with a positive value. so yeah, the error code is giving you the tea. β
π SEE ALSO π
- Kernel file
./security/apparmor/lib.c val_mask_to_str(9)aa_destroy_str_table(9)skipn_spaces(9)aa_info_message(9)aa_perm_mask_to_str(9)aa_apply_modes_to_perms(9)aa_policy_init(9)aa_policy_destroy(9)
This page made its way to you from ./security/apparmor, dated October 2026, and it's the aa_check_perms(9) manual page. bye bestie, ily ππ«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms