Rakuish — AUDIT-FIXES-0.71.2

0.71.2 审计修复记录

  • 日期:2026-11-12

  • 对象:main @ 0.71.2(基于 0.71.1)

  • 范围:审计 M-1 / M-2 / M-3

M-1 · 请求级 env 双实现

  • 删除 Agent!run-op 只挡 PATH 的旧逻辑。

  • exec 请求 env 现在统一复用 Sandbox.env-allowed 白名单: LANG / LANGUAGE / TZ / LC_*,其余 403。

  • 已有 t/06 的 LD_PRELOAD / PATH 403 回归继续覆盖。

M-2 · 并发审计

  • Sandbox.audit 的 @!entries 更新与 JSONL append 放进模块级 Lock。

  • 多客户端共享 Sandbox 时不会并发写坏 entries / JSONL。

  • t/06 新增 50 个并发 audit 条目计数断言。

M-3 · worker 连接计数

  • worker 分支用 LEAVE 归还 $active--。

  • serve-connection 抛异常时不会泄漏连接计数。

  • 正常路径不再重复 $active--。

验证

prove6 -Ilib t
bash tools/run-all.sh
zef install . --force-install

Rakuish v0.161.4

Raku 原生的命令与脚本环境(API v3):Raku 表达式 + `!` argv、会话级 Sys 文件 / 进程 API、DSL 短命令、可扩展 Command 注册表、无 magic 的 REPL、全权限本地执行与统一审计。v2 的 bash 子集 / %magic / 独立 shell 引擎已于 0.34.0 整体删除,只剩一套语义。

Authors

  • zef:skyter10086

License

MIT

Dependencies

JSON::FastTerminal::LineEditorTerminal::APIArrow::IPC:ver<0.1.0+>

Test Dependencies

Provides

  • Rakuish::Audit
  • Rakuish::CLI
  • Rakuish::Command
  • Rakuish::DSL
  • Rakuish::Data
  • Rakuish::Data::Arrow
  • Rakuish::Data::CsvOptions
  • Rakuish::Data::Cursor
  • Rakuish::Data::Duck
  • Rakuish::Data::Engine
  • Rakuish::Data::Engine::DuckDB
  • Rakuish::Data::Engine::SQLite
  • Rakuish::Data::Pager
  • Rakuish::Data::Stream
  • Rakuish::Data::Table
  • Rakuish::Display
  • Rakuish::Eval
  • Rakuish::Eval::Protocol
  • Rakuish::Eval::Proxy
  • Rakuish::Eval::Server
  • Rakuish::Incomplete
  • Rakuish::Kernel
  • Rakuish::Kernel::Factory
  • Rakuish::Kernel::Notebook
  • Rakuish::Py
  • Rakuish::REPL::Chrome
  • Rakuish::REPL::Complete
  • Rakuish::REPL::Highlight
  • Rakuish::REPL::Hints
  • Rakuish::REPL::Introspect
  • Rakuish::REPL::Keymap
  • Rakuish::REPL::Methods
  • Rakuish::REPL::Plugins
  • Rakuish::REPL::Session
  • Rakuish::REPL::Session::Cells
  • Rakuish::REPL::Session::Commands
  • Rakuish::REPL::Session::Completion
  • Rakuish::REPL::Session::Config
  • Rakuish::REPL::Session::Diagnostics
  • Rakuish::REPL::Session::Exec
  • Rakuish::REPL::Session::Persistence
  • Rakuish::REPL::Session::Replay
  • Rakuish::REPL::Shell
  • Rakuish::REPL::SqlComplete
  • Rakuish::Result
  • Rakuish::Result::Renderer
  • Rakuish::Snapshot
  • Rakuish::Store
  • Rakuish::Sys
  • Rakuish::Sys::Console
  • Rakuish::Sys::FS
  • Rakuish::Sys::JobTable
  • Rakuish::Sys::PosixSpawn
  • Rakuish::Sys::Proc
  • Rakuish::Sys::Term
  • Rakuish::Sys::WinJob

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.