setenforce(9)
setenforce(9) π
okay so bestie, welcome to the Kernel API Manual β todayβs main character is setenforce, and she is literally the write handler for the securityfs node, "ipe/enforce" πβ¨. no cap.
NAME πΈ
setenforce β Write handler for the securityfs node, "ipe/enforce" π
SYNOPSIS π¦
ssize_t setenforce (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 the write syscall. πlenβ Supplies the length of data. πoffsetβ unused. literally not invited to the party π
RETURN π₯
- Length of buffer written β Success, slay β
-EPERMβ Insufficient permission, so no β
SEE ALSO π
check out the Kernel file ./security/ipe/fs.c β and these other faves: setaudit(9), getaudit(9), getenforce(9), new_policy(9), ipe_init_securityfs(9) π.
xoxo, your ./security/ipe bestie, October 2026 edition ππ
π¦ 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