Receive daily AI-curated summaries of engineering articles from top tech companies worldwide.
Endigest AI Core Summary
This post explains how Redox OS reimplemented namespace management and current working directory (CWD) using capability-based security.
•Redox OS is a microkernel OS where resources are accessed via Scheme-rooted paths (e.g., /scheme/file/home/user/file.txt), with namespaces controlling scheme visibility per process
•Previously, the kernel managed namespaces using integer IDs and CWD was stored as a plain string, requiring full path reconstruction on every relative path access
•A new userspace Namespace Manager (nsmgr) daemon was introduced: the namespace is now represented as a file descriptor, and openat is used to route file access through it
•CWD is now stored as a file descriptor (not a string), enabling relative path resolution without rebuilding absolute paths and simplifying O_RESOLVE_BENEATH support
•
Moving scheme/namespace logic out of the kernel reduces attack surface, eliminates kernel-side string parsing of scheme names, and opens the path for richer sandboxing featur
This summary was automatically generated by AI based on the original article and may not be fully accurate.