task_avdcache_search(9)
π task_avdcache_search β the Kernel API Manual girlies are gonna eat this UP β¨
okay so bestie, welcome to the Kernel API Manual entry for task_avdcache_search(9), and no cap this one is short but she is mighty π
πΈ NAME πΈ
task_avdcache_search β literally just: search the task's AVD cache π¦
β¨ SYNOPSIS β¨
int task_avdcache_search (struct task_security_struct *tsec , struct
inode_security_struct *isec , struct avdc_entry **avdc );
π«Ά ARGUMENTS π«Ά
tsecβ the task's security state, aka the vibe holder for the task in question πisecβ the inode we're searching for in the cache, the main character we're looking up πavdcβ the matching avd cache entry that gets returned to the caller, iykyk π₯
π DESCRIPTION π
So what it does is: search tsec for an AVD cache entry that matches isec, and hand it right back to the caller via avdc π
And the returns? Slay:
0if a match is found β periodt, we ate π- negative values otherwise β not the vibe, but that's what it returns π
π SEE ALSO π
Kernel file ./security/selinux/hooks.c, plus the whole friend group:
selinux_secmark_enabled(9)selinux_peerlbl_enabled(9)task_avdcache_reset(9)task_avdcache_update(9)selinux_inode_permission(9)selinux_inode_xattr_skipcap(9)selinux_mmap_backing_file(9)selinux_skb_peerlbl_sid(9)selinux_conn_sid(9)selinux_getselfattr(9)selinux_uring_override_creds(9)selinux_uring_sqpoll(9)selinux_uring_cmd(9)selinux_uring_allowed(9)
aaaand that's the whole page bestie π§ from ./security/selinux, dated October 2026, filed under task_avdcache_search(9) β go forth and search that cache, 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