validate_hash_algo(9)
π¦ NAME π¦
okay so bestie, welcome to validate_hash_algo(9) from the Kernel API Manual β it's giving little security gatekeeper energy.
validate_hash_algo β Block setxattr with unsupported hash algorithms. periodt. π
β¨ SYNOPSIS β¨
int validate_hash_algo (struct dentry *dentry , const struct
evm_ima_xattr_data *xattr_value , size_t xattr_value_len );
π ARGUMENTS π
dentryβ object of thesetxattr. like, the thing being touched, bestie.xattr_valueβ userland suppliedxattrvalue. yes, straight from userland.xattr_value_lenβ length ofxattr_value. the size, the length, the whole deal.
π DESCRIPTION π
The xattr value is mapped to its hash algorithm, and this algorithm must be built in the kernel for the setxattr to be allowed. no cap.
Emit an audit message when the algorithm is invalid. π₯
π₯ RETURN π₯
0 on success, else an error. slay when it's 0, sad little error vibe otherwise. π
π SEE ALSO π
- Kernel file
./security/integrity/ima/ima_appraise.c ima_inode_post_setattr(9)
π that's the whole page, bestie β source/version: ./security/integrity/ima; dated October 2026; and the manual page is validate_hash_algo(9). periodt. π
π¦ 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