fix: remove User=deepin-daemon from lastore-after-upgrade-check#276
Conversation
This service creates a configuration file under /tmp owned by the deepin-daemon user, and other users do not have permission to modify it. Bug: https://pms.uniontech.com/bug-view-346161.html
|
CLA Assistant Lite bot: |
deepin pr auto review我来对这个 systemd 服务文件的修改进行审查:
a. 恢复用户配置: User=deepin-daemonb. 如果确实需要更高权限,建议: User=root
# 或者使用 Capability 机制仅授予必要的权限
CapabilityBoundingSet=CAP_NET_ADMIN CAP_SYS_ADMIN
AmbientCapabilities=CAP_NET_ADMIN CAP_SYS_ADMINc. 其他安全加固建议: # 限制文件系统访问
ProtectSystem=full
ProtectHome=true
# 限制网络访问
PrivateNetwork=true
# 或者如果需要网络访问
RestrictAddressFamilies=AF_INET AF_INET6
# 限制系统调用
SystemCallFilter=@system-service
SystemCallErrorNumber=EPERM
# 限制设备访问
PrivateDevices=true
DevicePolicy=closed
# 限制内核特性
RestrictRealtime=true
MemoryDenyWriteExecute=true
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: electricface, zhaohuiw42 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
This service creates a configuration file under /tmp owned by the deepin-daemon user, and other users do not have permission to modify it.
Bug: https://pms.uniontech.com/bug-view-346161.html