mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-10-04 00:03:59 +00:00
feat(proc): Cleaner 跨进程修复(tool/input/output) + 共享内存安全模式 + plan §13
- Cleaner 协议统一为 cleaner.invoke(scope,name,text),覆盖工具/输入/输出三类 - 新增 ShmSecurityMode (safe/debug/full),Linux 审计探针,Windows crypto nonce - plan.md 追加 §13 步骤分组
This commit is contained in:
11
internal/plugin/proc/shm_security_other.go
Normal file
11
internal/plugin/proc/shm_security_other.go
Normal file
@ -0,0 +1,11 @@
|
||||
//go:build !linux
|
||||
|
||||
package proc
|
||||
|
||||
// countOurShmMappings 在非 Linux 平台返回 ok=false(无 /proc 探针)。
|
||||
//
|
||||
// macOS 无 /proc;Windows 无 fd 继承,命名对象的映射计数需走 Win32 API,
|
||||
// 当前阶段不实现,留给调用方跳过告警。
|
||||
func (h *Host) countOurShmMappings() (int, bool) {
|
||||
return 0, false
|
||||
}
|
||||
Reference in New Issue
Block a user