tomoyo_poll_query(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

tomoyo_poll_query β€” poll() for /sys/kernel/security/tomoyo/query. This page is from the Kernel API Manual, and it's lowkey the vibe check for the query file. πŸ’…

✨ SYNOPSIS ✨

__poll_t tomoyo_poll_query (struct file *file , poll_table *wait );

πŸŽ€ ARGUMENTS πŸŽ€

  • file β€” pointer to struct file. literally the file pointer, bestie.
  • wait β€” pointer to poll_table. no cap, that's the poll_table pointer, periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so when it's ready to read, it returns EPOLLIN | EPOLLRDNORM. Otherwise it returns 0. That's the whole return situation. ✨

It waits for access requests which violated policy in enforcing mode. Yes, enforcing mode. The rules are the rules. πŸ‘‘

πŸ’– SEE ALSO πŸ’–

Kernel file ./security/tomoyo/common.c, plus this iconic squad of (9) pages:

Signed off with love from ./security/tomoyo, dated October 2026, on the tomoyo_poll_query(9) page. byeee 🫢✨

πŸ“¦ where this page comes from