ima_queue_staged_delete_all(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay bestie, meet ima_queue_staged_delete_all(9) β€” the Kernel API Manual entry for Delete staged measurements. πŸ’… this is the cleanup girly. no cap.

✨ SYNOPSIS ✨

int ima_queue_staged_delete_all (void );

🌸 ARGUMENTS 🌸

  • void β€” no arguments. literally none, bestie 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the way this one works: it moves staged measurements to a temporary list, ima_measurements_trim, and updates the number of records and the binary run-time size accordingly. then β€” finally β€” it deletes the measurements in the temporary list. slay. πŸ’–

and plot twist: it refuses to delete staged measurements if measurement is suspended, so that dump can be done in a lockless way and user space is notified about staged measurements being carried over to the secondary kernel, so that it does not save them twice. periodt. πŸ”₯

πŸ’œ RETURN πŸ’œ

  • Zero on success, a negative value otherwise. that's the whole vibe check. 😌

⭐ SEE ALSO ⭐

Kernel file ./security/integrity/ima/ima_queue.c plus these besties:


sign-off cutie: this page is from ./security/integrity/ima, dated October 2026, and yes bestie, it's still ima_queue_staged_delete_all(9). mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from