smack_key_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– smack_key_alloc(9) πŸ’–

okay bestie, welcome to the Kernel API Manual page for smack_key_alloc(9). This one is short, sweet, and literally about setting the key security blob. ✨

🌸 NAME 🌸

smack_key_alloc β€” Set the key security blob

✨ SYNOPSIS ✨

int smack_key_alloc (struct key *key , const struct cred *cred ,
       unsigned long flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • key β€” object.
  • cred β€” the credentials to use.
  • flags β€” unused.

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so the tea is: No allocation required.

It returns 0. That's the whole description, no cap. πŸ’…

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./security/smack/smack_lsm.c, plus the whole Smack crew:


mwah πŸ’‹ source check: this page lives in ./security/smack, dated October 2026, and it's the smack_key_alloc(9) manual page β€” bye bestie! πŸ«ΆπŸ’–

πŸ“¦ where this page comes from