tomoyo_set_string(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay bestie, welcome to tomoyo_set_string(9) from the Kernel API Manual β€” this one is literally here to queue a string to the struct tomoyo_io_buffer structure. Periodt. πŸ’…


✨ SYNOPSIS ✨

void tomoyo_set_string (struct tomoyo_io_buffer *head , const char *string );

🫢 ARGUMENTS 🫢

  • head β€” Pointer to struct tomoyo_io_buffer. That's the buffer bestie we're working with. πŸŽ€
  • string β€” String to print. The actual text content, no cap. ✨

🌸 DESCRIPTION 🌸

So here's the important tea: string has to be kept valid until head is kfreed. 🚨 That means a char[] allocated on stack memory cannot be passed to this function. Like, do not do it, bestie, it's giving danger.

Use tomoyo_io_printf for char[] allocated on stack memory instead. πŸ’–

πŸ¦‹ Lowkey crucial: keep string valid until head is kfreed, and do not pass stack-allocated char[] here. For stack-allocated char[], use tomoyo_io_printf. πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

The Kernel file is ./security/tomoyo/common.c, and the whole function squad is right here β€” every single icon, in order, no skips:


πŸŽ€ Cute lil sign-off: this page came from ./security/tomoyo, dated October 2026, and it's all about tomoyo_set_string(9). Slay. πŸ’–βœ¨
πŸ“¦ where this page comes from