validate_hash_algo(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 the setxattr. like, the thing being touched, bestie.
  • xattr_value β€” userland supplied xattr value. yes, straight from userland.
  • xattr_value_len β€” length of xattr_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 🌈


πŸ’Œ 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