security_ke...nit_security(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the security_ke...nit_security(9) page from the Kernel API Manual. This one is all about security_kernfs_init_security β€” the function that inits the LSM context for a kernfs node. That’s the name, that’s the vibe, periodt.

✨ SYNOPSIS ✨

int security_kernfs_init_security (struct kernfs_node *kn_dir , struct kernfs_node *kn );

That’s the signature, no cap.

πŸŽ€ ARGUMENTS πŸŽ€

  • kn_dir β€” the parent kernfs node. It’s giving β€œI raised you” energy.
  • kn β€” the kernfs node to initialize. This one is literally getting its security-context moment.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here’s what’s happening: it initializes the security context of a newly created kernfs node, based on the node’s own attributes and its parent’s attributes. Both. The way it pulls from both the node and its parent is the whole point. Slay.

🌸 RETURN 🌸

Returns 0 if permission is granted. That’s the return detail β€” permission granted, 0. No extra lore on this page, bestie.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./security/security.c β€” and the whole cross-reference guest list is:


xoxo, your Kernel API Manual bestie πŸ’…βœ¨ β€” page security_ke...nit_security(9), source/version ./security, dated October 2026 🫢

πŸ“¦ where this page comes from