Skip to content

Commit d173a88

Browse files
committed
docs(runtime-fix): record chmod_modify.sh enforcement convention
Add a third mandatory script-only convention to the runtime-fix execution log, alongside the existing rm_tmp_file.sh (AI memory 81725399) and kill_process.sh (AI memory 90098233) rules: - chmod_modify.sh enforcement (AI memory 21626578): all permission changes must go through /data/workspace/chmod_modify.sh <mode> <path> …; direct chmod / install -m / setfacl invocations are forbidden with zero tolerance. The /data/workspace/chmod_modify.sh script itself was expanded from a two-line placeholder into a full implementation that mirrors the rm_tmp_file.sh / kill_process.sh style: chmod(1)-compatible modes (octal and symbolic), high-risk path blacklist (/, /etc, /usr, /var, /home, /root, /data, /data/workspace top-level plus /etc/passwd /shadow /sudoers /group), pre-change permission snapshot under /data/workspace/.trash/<UTC-ts>/, full audit trail in /data/workspace/.chmod_audit.log, and an explicit warning for setuid/setgid bits without blocking them.
1 parent 747da45 commit d173a88

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/freebsd_13_to_15_upgrade_spec/zh_cn/runtime-fix-execution-log.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
| 规约 | AI memory ID | 内容 |
4242
|---|---|---|
4343
| rm_tmp_file.sh 强制(继承) | 81725399 | 所有删除走 `/data/workspace/rm_tmp_file.sh`;严禁直接 `rm` |
44-
| **kill_process.sh 强制(新增 2026-06-01 19:30)** | **90098233** | 所有进程终止走 `/data/workspace/kill_process.sh`;严禁直接 `kill / pkill / killall / kill -9 / pgrep+kill` |
44+
| **kill_process.sh 强制(runtime-fix 阶段新增 2026-06-01 19:30)** | **90098233** | 所有进程终止走 `/data/workspace/kill_process.sh`;严禁直接 `kill / pkill / killall / kill -9 / pgrep+kill` |
45+
| **chmod_modify.sh 强制(runtime-fix 阶段新增 2026-06-01 20:36)** | **21626578** | 所有权限修改走 `/data/workspace/chmod_modify.sh <mode> <path>...`;严禁直接 `chmod / install -m / setfacl` 等任何形式的权限修改命令 |
4546
| commit message 英文(继承) | 73362122 | 所有 git commit 全英文 |
4647
| 实测优先 | - | 4 方交叉验证(spec / 现状 / 13.0 / 15.0),不一致以代码为准 |
4748
| 强制重编 | - | 每修一处必跑 `cd lib && make clean && make`(吸取 M3 末 .o 缓存假象教训) |

0 commit comments

Comments
 (0)