profile_capable(9)
okay so bestie, welcome to profile_capable(9) β the Kernel API Manual page thatβs about to explain itself. π
No cap, every detail is staying.
πΈ NAME πΈ
profile_capable β test if profile allows use of capability @cap. periodt. β¨
β¨ SYNOPSIS β¨
hereβs the signature, character-for-character, donβt let the line break scare you:
int profile_capable (struct aa_profile *profile , int cap , unsigned int
opts , struct apparmor_audit_data *ad );
π ARGUMENTS π
profileβ the profile being enforced. Itβs NOT NULL and not unconfined (the original is very loud about this, and honestly same). π«Άcapβ the capability to test if allowed. π₯optsβ theCAP_OPT_NOAUDITbit determines whether an audit record is generated. πadβ audit data, and it is NOT NULL. periodt.
π₯ RETURN π₯
0 if allowed, else -EPERM β thatβs the whole mood. β
π
π¦ SEE ALSO π¦
- Kernel file
./security/apparmor/capability.c audit_cb(9)audit_caps(9)aa_capable(9)
mwah π β source/version ./security/apparmor, date October 2026, page profile_capable(9). byeee π
π¦ 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