Rework handling of /run and ${RUNUSER} in blacklist mode

This commit is contained in:
2026-03-25 22:48:39 +01:00
parent 0bd91ffad2
commit 82f84247f1
5 changed files with 115 additions and 3 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ pub fn resolve_path_context() -> Result<PathContext, SandboxError> {
let run_user = std::env::var("XDG_RUNTIME_DIR")
.ok()
.or_else(resolve_run_user_from_proc)
.unwrap_or_default();
.ok_or(SandboxError::RunUserNotFound)?;
Ok(PathContext { home, run_user })
}