getaudit(9)
β¨ getaudit π
okay so bestie, welcome to getaudit β she's the read handler for the securityfs node, and that node is literally "ipe/success_audit". that's it, that's the whole vibe. she reads, she slays, she returns a length. π
πΈ SYNOPSIS πΈ
ssize_t getaudit (struct file *f , char __user *data , size_t len ,
loff_t *offset );
no cap, that's the whole signature. copy it exactly, don't @ me. β¨
π¦ ARGUMENTS π¦
fβ supplies a file structure representing the securityfs node. she's the main character of this whole operation fr fr π«Άdataβ supplies a buffer passed to thereadsyscall. this is where the reading actually happens, iykyk πlenβ supplies the length ofdata. yes bestie, size matters, this is literally how much room you're giving her πΈoffsetβ unused. not me pointing out that she's just sitting there, unused, iconic but doing nothing ππ
π₯ RETURN π₯
the length of buffer written. that's it. that's the return value. periodt. π
β SEE ALSO β
- Kernel file
./security/ipe/fs.cβ like, the actual source file, go read her π setaudit(9)setenforce(9)getenforce(9)new_policy(9)ipe_init_securityfs(9)
all of these are her friends, the whole squad, go say hi π§π
ngl bestie, if you're here you probably want setaudit(9) instead β this one only reads. don't come for me, I'm just the messenger π
and that's a wrap! π this whole page lives in ./security/ipe and it's dated October 2026 β yes, the future, because she's ahead of her time βπ
bye bestie, go read some audit state π
π¦ 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