收紧证书目录写入权限

移除 systemd 对旧默认证书目录的静态写入授权,证书目录由初始化流程按用户输入动态授权,并同步更新权限策略测试。
This commit is contained in:
xuans committed 2026-09-27 11:26:32 +08:00
1 parent 80029c2d1f
commit 27cd1b1cee
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ RestrictRealtime=yes
RestrictSUIDSGID=yes
RemoveIPC=yes
SystemCallArchitectures=native
ReadWritePaths=/ssl/scert /scert/conf /scert/data /scert/log /scert/backups
ReadWritePaths=/scert/conf /scert/data /scert/log /scert/backups
# 初始化临时证书读取本机网卡地址需要 NETLINK_ROUTE,不授予网络管理能力。
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK