security_path_mkdir(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ security_path_mkdir(9) β€” Kernel API Manual ✨

okay bestie, welcome to the security_path_mkdir(9) page from the Kernel API Manual. this is the whole manual, but make it group-chat. every arg, return value, and SEE ALSO reference is staying. no cap. πŸ«ΆπŸ’–


πŸ’– NAME πŸ’–

security_path_mkdir - Check if creating a new directory is allowed

literally the permission vibe check for making a directory. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

the exact signature, bestie, character for character:

int security_path_mkdir (const struct path *dir , struct dentry *dentry
, umode_t mode );

πŸŽ€ ARGUMENTS πŸŽ€

one little bullet per argument, all deets intact: ✨

  • dir β€” parent directory. the parent-directory arg, periodt.
  • dentry β€” new directory. the new-directory arg, fresh out the box.
  • mode β€” new directory mode. the mode for the new directory.

🌸 DESCRIPTION 🌸

Check permissions to create a new directory in the existing directory. So yes, it's the permission check for making a new directory inside an existing one. it's giving gatekeeping but make it kernel security. πŸ’…

πŸ”₯ RETURN πŸ”₯

Returns 0 if permission is granted. that's the green light, bestie. βœ…

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./security/security.c is on the list, plus this entire extended fam β€” every single reference from the original, no cap:

and that's the whole page, bestie. signed off by source/version ./security in October 2026, and the page name is literally security_path_mkdir(9). mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from