限制管理员重置为显式启动并隔离终端输入
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-19 23:43:25 +08:00
1 parent 04f7deb20f
commit 97c815deb0
12 files changed
+646 -18

No files matched your search

+3 -2
View File
@@ -18,8 +18,7 @@ PrivateNetwork=true
PrivateDevices=true
ProtectHome=true
ProtectSystem=strict
# 密码代理在本机临时目录收集交互输入;验证内容可见,新密码不回显,且均不写入业务配置或数据库。
ReadWritePaths=/run/systemd/ask-password
# 交互绑定显式 start 的管理员终端,不发布系统共享密码请求;新密码不回显。
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
@@ -32,3 +31,5 @@ LockPersonality=true
MemoryDenyWriteExecute=true
TimeoutStartSec=330s
TimeoutStopSec=5s
# 先通知主进程取消输入并恢复终端,超时后再清理整个控制组。
KillMode=mixed