setaudit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… setaudit(9) πŸ’…

okay so bestie, this is setaudit(9) from the Kernel API Manual, and we are literally about to vibe-check a kernel write handler. No cap, it's giving main character energy in securityfs. πŸ’–

πŸ’– NAME πŸ’–

setaudit β€” Write handler for the securityfs node "ipe/success_audit". That's the whole name, periodt. πŸŽ€

✨ SYNOPSIS ✨

the signature stays exactly like this, fr fr:

ssize_t setaudit (struct file *f , const char __user *data , size_t len
, loff_t *offset );

πŸŽ€ ARGUMENTS πŸŽ€

vibe check on the args, bestie:

  • f β€” Supplies a file structure representing the securityfs node. main character file struct energy.
  • data β€” Supplies a buffer passed to the write syscall. the buffer bestie, periodt.
  • len β€” Supplies the length of data. length tea β˜•.
  • offset β€” unused. literally unused, not me giving it a job.

πŸ”₯ RETURN πŸ”₯

the return value situation is lowkey simple:

  • Length of buffer written β€” Success slay, it worked.
  • -EPERM β€” Insufficient permission oof, permission said no.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./security/ipe/fs.c is the spot to peep, plus getaudit(9), setenforce(9), getenforce(9), new_policy(9), and ipe_init_securityfs(9). iykyk, go read the friends. πŸ¦‹

πŸ’– cute sign-off: signed from ./security/ipe, October 2026, setaudit(9) edition β€” periodt, go touch grass after you ship πŸ’–

πŸ“¦ where this page comes from