dsh-ops plugin, specifically its native worker component, on HarmonyOS (openharmony-arm64). The core issue is `cap-std`'s `openat2` fast path being blocked by platform `seccomp` policies.
Raw Developer Origin & Technical Request
GitHub Issue
Oct 14, 2026
## 环境
| 项 | 值 |
| --- | --- |
| 设备 | HarmonyOS PC,HUAWEI KirinX90(20 逻辑核 / 24 GB),HongMeng Kernel 1.13.0 |
| `process.platform` / `arch` | **`openharmony`** / `arm64` |
| 目标三元组 | `aarch64-unknown-linux-ohos`(rustc 报告 `target_os="linux"` + `target_env="ohos"`) |
| C 运行库 | musl(`/lib/ld-musl-aarch64.so.1`,无 `/lib/ld-linux-aarch64.so.1`) |
| Node / 宿主 DSH | `v26.10.0` / `0.2.1-alpha.2` |
| 插件版本 | `0.3.0`(`c4d829a`);对照 npm `0.3.0` |
我在 HarmonyOS 上把插件装进 DSH 试跑,宿主层(配置、组件开关、提示词、工具注册、manifest
校验)都正常,原生层是两个独立问题:一个是环境/平台识别,另一个是**平台 seccomp 策略禁止
`openat2`,而 `cap-std` 在 Linux 目标上把所有目录相对操作都实现成 `openat2`**。
---
## 一、worker 可以构建(配方)
官方 rustup 在本机不可用:aarch64-unknown-linux-gnu 与 static-musl 两版 `rustup-init` 都因
缺少 `/lib/ld-linux-aarch64.so.1` 拒绝执行(`errno=13`)。平台自带的包管理器有原生
`rust 1.99.0`(`arm64_ohos` bottle),装上后 `cargo build` 需要三处额外配置:
```console
$ brew install rust
$ rustc -vV | grep host
host: aarch64-unknown-linux-ohos
$ export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_OHOS_LINKER=aarch64-linux-ohos-gcc
$ export RUSTFLAGS="-L native=$(brew --prefix ohos-sdk-native)/llvm/lib/aarch64-linux-ohos"
$ cargo build --release --locked --manifest-path native/Cargo.toml
Finished `release` profile [optimized] target(s) in 17.64s
$ file native/target/release/dsh-ops-worker
ELF shared object, 64-bit LSB arm64, dynamic (/lib/ld-musl-aarch64.so.1), not stripped
```
- 默认不存在 `cc`,链接器必须指向 `aarch64-linux-ohos-gcc`;
- Rust 的 `aarch64-unknown-linux-ohos` std 会链接 `-lunwind`,它只在 OHOS 原生 SDK 的
`llvm/lib/aarch...
Developer Debate & Comments
Adjacent Repository Pain Points
Other highly discussed features and pain points extracted from T-Auto/dsh-ops.
Frequently Asked Questions
Market intelligence mapped to dsh-ops plugin, specifically its native worker component, on HarmonyOS (openharmony-arm64). The core issue is `cap-std`'s `openat2` fast path being blocked by platform `seccomp` policies..
How is dsh-ops plugin, specifically its native worker component, on HarmonyOS (openharmony-arm64). The core issue is `cap-std`'s `openat2` fast path being blocked by platform `seccomp` policies. positioned in the market?
What is the general sentiment around dsh-ops plugin, specifically its native worker component, on HarmonyOS (openharmony-arm64). The core issue is `cap-std`'s `openat2` fast path being blocked by platform `seccomp` policies.?
What architecture is tied to dsh-ops plugin, specifically its native worker component, on HarmonyOS (openharmony-arm64). The core issue is `cap-std`'s `openat2` fast path being blocked by platform `seccomp` policies.?
Engagement Signals
Cross-Market Term Frequency
Quantifies the cross-market adoption of foundational terms like rustup and HarmonyOS (openharmony-arm64) by tracking occurrence frequency across active SaaS architectures and enterprise developer debates.
SaaS Metrics