summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/README.md
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-26 05:05:49 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 06:59:42 +0000
commitfe259bd042325b0e35cefd44da344a5aec905083 (patch)
treee878258bf2ea707de16646c14ad2a9d1d3a6478d /util/libreboot-utils/README.md
parent1900e18daea900fcc012fe417e1de04a4e0c00c5 (diff)
improve
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/README.md')
-rw-r--r--util/libreboot-utils/README.md21
1 files changed, 20 insertions, 1 deletions
diff --git a/util/libreboot-utils/README.md b/util/libreboot-utils/README.md
index 40a5bb32..3a7701ad 100644
--- a/util/libreboot-utils/README.md
+++ b/util/libreboot-utils/README.md
@@ -51,6 +51,25 @@ development. A stable release will be announced when ready.
### What does mkhtemp do differently?
+#### Short version:
+
+Detect and mitigate symlink attacks, directory access
+race conditions, unsecure TMPDIR (e.g. bad enforce sticky
+bit policy on world writeable dirs), implement in user
+space a virtual sandbox (block directory escape and resolve
+paths by walking from `/` manually instead of relying on
+the kernel/system), voluntarily error out (halt all
+operation) if accessing files you don't own - that's why
+sticky bits are checked for example, even when you're root.
+
+Mkhtemp is designed to be the most secure implementation
+possible, of mktemp, offering a heavy amount of hardening
+over traditional mktemp.
+
+i.e. please read the source code
+
+#### Long version:
+
This software attempts to provide mitigation against
several TOCTOU-based
attacks e.g. directory rename / symlink / re-mount, and
@@ -210,7 +229,7 @@ a drop-in replacement on Linux distros (and BSDs if they
want it), while providing a more hardened version and
recommending that where possible.
-~~Rewrite it in rust~~ /jk
+~~Rewrite it in rust~~ (nothing against it though, I just like C89 for some reason)
Also, generally document the history of mktemp, and how
mkhtemp works in comparison.