-
Notifications
You must be signed in to change notification settings - Fork 40
chore: temporarily disable security restrictions in service configura… #594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…tion temporarily disable security restrictions in service configuration log: temporarily disable security restrictions in service configuration bug: https://pms.uniontech.com/bug-view-346599.html
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR temporarily disables security-related constraints in the deepin-devicecontrol systemd service unit to work around a reported bug, adjusting the service configuration rather than application code. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: add-uos, lzwind 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 |
deepin pr auto review我来对这个systemd服务配置文件的变更进行审查:
现在所有这些安全配置都被注释掉了,这将使服务以完全不受限制的方式运行,这会带来严重的安全风险。
b) 如果确实需要某些特定权限,建议:
d) 替代方案:
# 基本安全限制应该保留
ProtectSystem=full
ProtectHome=true
PrivateTmp=true
NoNewPrivileges=true
# 如果确实需要特定权限,只开放必要的
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_SYS_MODULE
AmbientCapabilities=CAP_SYS_ADMIN CAP_SYS_MODULE
# 保持路径访问控制,但可以根据需要调整
ReadWritePaths=/var/lib/deepin-devicemanager
ReadWritePaths=/var/log
ReadOnlyPaths=/sys
ReadOnlyPaths=/proc这个变更会显著降低系统的安全性,强烈建议不要完全禁用所有安全限制。如果确实需要某些权限,应该只开放最小必要的权限集合,并详细记录原因。 |
|
/forcemerge |
|
This pr force merged! (status: unstable) |
…tion
temporarily disable security restrictions in service configuration
log: temporarily disable security restrictions in service configuration
bug: https://pms.uniontech.com/bug-view-346599.html
Summary by Sourcery
Enhancements: