fix: enhance service security with systemd hardening #206
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added security hardening options to the [email protected] file to improve system security and limit potential attack surfaces. The changes include enabling NoNewPrivileges to prevent privilege escalation, setting ProtectSystem=strict to protect system directories, and configuring specific ReadWritePaths to restrict file system access. Additional protections include restricting kernel module loading and real-time scheduling access.
Log: Enhanced security for update log copy service with systemd hardening features
Influence:
fix: 增强服务安全性,添加 systemd 加固选项
为 [email protected] 文件添加了安全加固选项,以提高系统 安全性并限制潜在攻击面。更改包括启用 NoNewPrivileges 防止权限提升,设置
ProtectSystem=strict 保护系统目录,以及配置特定的 ReadWritePaths 限制文 件系统访问。其他保护措施包括限制内核模块加载和实时调度访问。
Log: 通过 systemd 加固功能增强了更新日志复制服务的安全性
Influence: