chore: temporarily disable security restrictions in service configura…#594
Merged
deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom Jan 6, 2026
Merged
chore: temporarily disable security restrictions in service configura…#594deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom
deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom
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
|
lzwind
approved these changes
Jan 6, 2026
|
[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这个变更会显著降低系统的安全性,强烈建议不要完全禁用所有安全限制。如果确实需要某些权限,应该只开放最小必要的权限集合,并详细记录原因。 |
Contributor
Author
|
/forcemerge |
Contributor
|
This pr force merged! (status: unstable) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
…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: