ecryptfs_fin..._tok_for_sig(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

ok so bestie, this is ecryptfs_find_auth_tok_for_sig β€” and like, the manpage literally gives us no description after the dash πŸ’€ so we're just gonna roll with the name and let the rest of the page do the talking, iykyk.

This one lives in the Kernel API Manual, in case you were wondering where to file it in your brain 🧠✨


✨ SYNOPSIS ✨

int ecryptfs_find_auth_tok_for_sig (struct key **auth_tok_key , struct
       ecryptfs_auth_tok **auth_tok , struct ecryptfs_mount_crypt_stat
       *mount_crypt_stat , char *sig );

four args, one int return, and honestly the signature alone is giving main character energy πŸŽ€


🫢 ARGUMENTS 🫢

  • auth_tok_key β€” the key that's holding the authentication token, bestie. that's it, that's the whole vibe πŸ”‘
  • auth_tok β€” gets set to the matching auth_tok. and if nothing matches? it's NULL. no cap, that's the not-found state πŸ™ˆ
  • mount_crypt_stat β€” the inode crypt_stat crypto context. like, the whole context of the operation, okay πŸ’…
  • sig β€” the sig of the auth_tok you're trying to find. yes, the sig belongs to the auth_tok. that's the assignment 🎯

πŸ’– DESCRIPTION πŸ’–

okay so for now, this function simply looks at the registered auth_tok's linked off the mount_crypt_stat. the consequence of that is kind of a big deal tho: all the auth_toks that can be used must be registered at mount time ⏰ like, at mount time. no late arrivals. the guest list is closed 🌈

and here's the tea β˜• β€” this function could potentially try a lot harder to find auth_toks. for example (their words, not mine), by calling out to ecryptfsd to dynamically retrieve an auth_tok object. if it did that, then static registration of auth_toks would no longer be necessary. so that's a real possibility floating around out there πŸ¦‹ absolutely not what it does today, tho β€” don't get it twisted.

Returns zero on no error; non-zero on error. periodt. πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./fs/ecryptfs/keystore.c β€” and the whole friend group right here:

like, the whole packet squad showed up 🫢✨


πŸ’… and that's the page!! brought to you by ./fs/ecryptfs, dated October 2026 β€” mwah, love u, go read your kernel source bestie πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from