tomoyo_mount_acl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tomoyo_mount_acl(9)

okay so bestie, welcome to the tomoyo_mount_acl page β€” this one lives in the Kernel API Manual and honestly? it's giving "small function, big responsibility" energy. it does exactly one thing and it does it with main character confidence: Check permission for mount() operation. periodt. πŸ”₯


✨ SYNOPSIS ✨

int tomoyo_mount_acl (struct tomoyo_request_info *r , const char
*dev_name , const struct path *dir , const char *type , unsigned long
flags );

literally the whole signature, no cap β€” copy it exactly if you're typing it out πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • r β€” Pointer to "struct tomoyo_request_info". this is the request-info vibe holder, she's the one carrying the context 🫢
  • dev_name β€” Name of device file. Maybe NULL. yes bestie, NULL is allowed, don't panic 🌸
  • dir β€” Pointer to "struct path".
  • type β€” Name of filesystem type.
  • flags β€” Mount options.

πŸ¦‹ DESCRIPTION πŸ¦‹

Returns 0 on success, negative value otherwise. that's it, that's the deal β€” zero means slay βœ…, anything negative means nope 😭

Caller holds tomoyo_read_lock. important detail, don't skip it β€” whoever's calling this is already holding that lock, iykyk. πŸ”’


🌈 SEE ALSO 🌈

go read those too, they're all in the same friend group fr fr πŸ‘‘


and that's the whole page, bestie πŸŽ€ this iconic little entry comes from ./security/tomoyo and it's dated October 2026 β€” so yeah, mark your calendar, the mount ACL lore is timeless πŸ’œβœ¨

πŸ“¦ where this page comes from