security_move_mount(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… security_move_mount β€” Kernel API Manual, section (9)

okay bestie, welcome to the Kernel API Manual, section 9 β€” this is the page for security_move_mount, and it's honestly a little icon of a function. Short, sweet, does exactly one job. We love a focused queen. πŸ‘‘


✨ NAME ✨

security_move_mount β€” check permissions for moving a mount πŸ¦‹


🌸 SYNOPSIS 🌸

int security_move_mount (const struct path *from_path , const struct
       path *to_path );

πŸŽ€ ARGUMENTS πŸŽ€

  • from_path β€” the source mount point, aka where the mount is coming from πŸ’«
  • to_path β€” the destination mount point, aka where it's headed πŸ›¬

πŸ’– DESCRIPTION πŸ’–

So like, the whole vibe here: check permission before a mount gets moved. That's it. That's the function. It's giving "security guard at the door of the mount-moving party" and honestly it's main character energy for such a tiny job. ✨


⭐ RETURN ⭐

Returns 0 if permission is granted. Zero equals slay in this context, no cap. 🫢


🌈 SEE ALSO 🌈

Kernel file ./security/security.c, plus the entire extended friend group:


bestie that's a lot of cross-references, but every single one of them is invited to the group chat. don't @ me. πŸ’€

and that's the whole page!! πŸ’œ this lil slice of the Kernel API Manual (section 9) lives over in ./security, and it's dated October 2026 β€” so yeah, she's from the future, obviously. 🧚 go move a mount, stay permissioned, and slay. πŸ“β­πŸ’…

πŸ“¦ where this page comes from