__audit_inode_child(9)
β¨ __audit_inode_child β Kernel API Manual β¨
okay so bestie, you're about to meet the little audit helper that handles the children of filesystem objects π like, the parent gets all the attention normally, but this one is for the created/removed objects themselves. main character energy fr fr π
πΈ NAME πΈ
__audit_inode_child β collect inode info for created/removed objects π
π¦ SYNOPSIS π¦
void __audit_inode_child (struct inode *parent , const struct dentry *dentry , const unsigned char type );
π ARGUMENTS π
parentβ the inode of the dentry's parent π like, the parent's inode, got itdentryβ the dentry being audited π the actual thing we're looking attypeβ anAUDIT_TYPE_*value that we're looking for β¨
π₯ DESCRIPTION π₯
For syscalls that create or remove filesystem objects, audit_inode can only collect info for the filesystem object's parent β lowkey sad, I know π This call right here updates the audit context with the child's information, so the child gets its moment too π
β¨
Syscalls that create a new filesystem object must be hooked after the object is created π«Ά periodt, no cap.
Syscalls that remove a filesystem object must be hooked prior β like, before β so that the target inode can be captured during unsuccessful attempts ππ yes bestie, even the failed attempts matter, don't skip that part.
π§ SEE ALSO π§
Kernel file ./kernel/auditsc.c and literally the whole friend group:
__audit_filter_op(9)audit_filter_uring(9)audit_reset_context(9)audit_alloc(9)audit_log_uring(9)__audit_free(9)audit_return_fixup(9)__audit_uring_entry(9)__audit_uring_exit(9)__audit_syscall_entry(9)__audit_syscall_exit(9)__audit_getname(9)__audit_inode(9)auditsc_get_stamp(9)__audit_mq_open(9)__audit_mq_sendrecv(9)__audit_mq_notify(9)__audit_mq_getsetattr(9)__audit_ipc_obj(9)__audit_ipc_set_perm(9)__audit_socketcall(9)__audit_fd_pair(9)__audit_sockaddr(9)audit_signal_info_syscall(9)__audit_log_bprm_fcaps(9)__audit_log_capset(9)audit_core_dumps(9)audit_seccomp(9)
π ngl bestie, this is a kernel-internal audit thing β if you're reading this page, you're already deep in the ./kernel directory, so slay, you're exactly where you need to be π«Ά
and that's the whole vibe check π this page lives in ./kernel, dated October 2026, and it's called __audit_inode_child(9) β iconic, no notes π
β¨π
π¦ 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