key_update(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is key_update(9) from the Kernel API Manual, and it's literally the page about updating a key's contents. No cap.

  • key_update β€” Update a key's contents.

✨ SYNOPSIS ✨

int key_update (key_ref_t key_ref , const void *payload , size_t plen );

🫢 ARGUMENTS 🫢

  • key_ref β€” The pointer (plus possession flag) to the key. Yes, the whole package, bestie.
  • payload β€” The data to be used to update the key. This is the new content vibe.
  • plen β€” The length of payload. Gotta tell it how much data we're working with.

πŸ”₯ DESCRIPTION πŸ”₯

Attempt to update the contents of a key with the given payload data. The caller must be granted Write permission on the key β€” no permission, no update, periodt. Negative keys can be instantiated by this method, which is lowkey iconic.

Returns 0 on success, -EACCES if not permitted, and -EOPNOTSUPP if the key type does not support updating. The key type may return other errors β€” so if you see something else, that's the key type doing its own thing, iykyk.

🌈 SEE ALSO 🌈

Kernel file ./security/keys/key.c β€” and the whole bestie squad:


mwah πŸ’‹ β€” source/version: ./security/keys, dated October 2026. πŸŽ€

πŸ“¦ where this page comes from