fscrypt_supported_policy(9)
π 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 π₯
trueif 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:
fscrypt_policies_equal(9)fscrypt_new_context(9)fscrypt_policy_from_context(9)fscrypt_has_permitted_context(9)fscrypt_context_for_new_inode(9)fscrypt_set_context(9)fscrypt_parse_test_dummy_encryption(9)fscrypt_dummy_policies_equal(9)fscrypt_show_test_dummy_encryption(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms