new_policy(9)
new_policy(9) π β¨
okay so bestie, welcome to the Kernel API Manual page for new_policy(9) β yes, kernel-space, 9-section energy. π This one is the write handler for the securityfs node, "ipe/new_policy". no cap.
π NAME
new_policy β the write handler for the securityfs node, "ipe/new_policy". literally its whole job. π
β¨ SYNOPSIS
ssize_t new_policy (struct file *f , const char __user *data , size_t
len , loff_t *offset );
π¦ ARGUMENTS
fβ supplies a file structure representing the securityfs node.dataβ supplies a buffer passed to thewritesyscall.lenβ supplies the length ofdata.offsetβ unused. π
π RETURN
okay so the return value is lowkey the whole plot. here's every outcome, fr fr:
- Length of buffer written β Success. slay. β
-EPERMβ Insufficient permission.-ENOMEMβ Out of memory (OOM).-EBADMSGβ Policy is invalid.-ERANGEβ Policy version number overflow.-EINVALβ Policy version parsing error.-EEXISTβ Same name policy already deployed.-ENOKEYβ Policy signing key not found.-EKEYREJECTEDβ Policy signature verification failed.
π SEE ALSO
Kernel file ./security/ipe/fs.c β setaudit(9), getaudit(9), setenforce(9), getenforce(9), ipe_init_securityfs(9). go read those too, bestie. π
Signed off with all the receipts: source/version ./security/ipe, date October 2026, manual new_policy(9). mwah ππ«Ά
π¦ 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