update_policy(9)
β¨ NAME β¨
okay so bestie, this page is update_policy(9), and yes, we're in the Kernel API Manual β hi, hello, welcome to the group chat π
update_policy β Write handler for "ipe/policies/$name/update". That's the whole vibe fr fr.
π SYNOPSIS π
ssize_t update_policy (struct file *f , const char __user *data , size_t
len , loff_t *offset );
π§ ARGUMENTS π§
fβ Supplies a file structure representing the securityfs node. Basically it hands you the file struct for that securityfs node, periodt.dataβ Supplies a buffer passed to the write syscall. It's the buffer that got passed to the write syscall, no cap.lenβ Supplies the length ofdata. Literally how long the data is.offsetβ unused. Not used. At all. Bestie, it's just sitting there π
π DESCRIPTION π
On success, this updates the policy represented by $name, in-place. That's it, that's the whole lore: success = policy gets updated right where it is, in-place. Slay β¨
π RETURN π
- Length of buffer written β Success π
-EPERMβ Insufficient permission-ENOMEMβ Out of memory (OOM)-ENOENTβ Policy was deleted while updating-EINVALβ Policy name mismatch-ESTALEβ Policy version too old
bestie, those negative returns are the drama β read them carefully before you assume it worked π
π¦ SEE ALSO π¦
Kernel file ./security/ipe/policy_fs.c struct ipefs_file(9), read_pkcs7(9), read_policy(9), read_name(9), read_version(9), setactive(9), getactive(9), delete_policy(9), ipe_del_policyfs_node(9), ipe_new_policyfs_node(9) β go read the whole friend group, iykyk πΈ
xoxo π from the ./security/ipe source, October 2026 β mwah, 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