fscrypt_supported_policy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fscrypt_supported_policy(9)

okay so this is a kernel API manual page, bestie β€” fscrypt_supported_policy(9), no cap. sit down, grab a lil snack πŸ“, and let's get into it.


✨ NAME ✨

fscrypt_supported_policy β€” the vibe check that tells you whether an encryption policy is actually supported πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

bool fscrypt_supported_policy (const union fscrypt_policy *policy_u ,
const struct inode *inode );

like, it returns a bool, takes two things, that's the whole thing πŸ¦‹


🌸 ARGUMENTS 🌸

  • policy_u β€” the encryption policy in question, the main character of this whole function πŸ’–
  • inode β€” the inode on which the policy will be used, i.e. where this policy is gonna live its life 🏠

πŸ’« DESCRIPTION πŸ’«

so here's the tea: you hand over an encryption policy, and this function checks whether all its encryption modes and other settings are actually supported by this kernel, on the given inode. literally all of them. every single mode, every setting. it's thorough like that ✨

⚠️ but β€” and this is the important part, don't skip it β€” it doesn't currently check for crypto API support here. (the original literally says "we don't currently don't check", double negative and all, we're keeping that energy πŸ’€). so if you try to use an algorithm that isn't configured into the crypto API, it will still fail later. later later. not now. just so you know πŸ™ˆ

πŸ”₯ RETURN πŸ”₯

  • true if supported 😌✨
  • else false 😭

that's it. that's the return value. slay.


🫢 SEE ALSO 🫢

Kernel file ./fs/crypto/policy.c plus the whole friend group:


okay that's the whole page, mwah πŸ’‹ β€” brought to you by the fine people at ./fs/crypto, dated October 2026. go forth and check your policies, bestie 🌈⭐

πŸ“¦ where this page comes from