fix: tighten DBus policy to restrict direct access to Face1 sensitive methods#53
Merged
Merged
Conversation
org.deepin.dde.Face1 的 DBus policy 配置中,context=default 放行了 所有方法(含 EnrollStart/VerifyStart/Delete 等),导致任意本地 用户均可通过 system bus 直接调用人脸特征管理操作。 收紧 default policy:只放行 Introspectable/Peer/Properties 标准 接口,拒绝 org.deepin.dde.Face1 接口。deepin-daemon group 和 root 用户不受限(实际的调用者 deepin-authentication 以 root 运行, 或其调用链经 deepin-security-loader 附加了 deepin-daemon group)。 PMS: BUG-364733 Influence: 普通用户不再能直接通过 qdbus/busctl 调用 Face1 敏感方法
Reviewer's guide (collapsed on small PRs)Reviewer's GuideTightens the DBus security policy for org.deepin.dde.Face1 so only standard DBus interfaces remain available to unprivileged users, while full access is limited to root and members of the deepin-daemon group. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review这是一个DBus配置文件的变更,主要涉及权限控制的调整。我对这个变更有以下几点分析和建议:
总的来说,这个变更提高了系统的安全性,通过默认拒绝所有请求,然后明确允许特定接口和用户的方式,实现了更严格的访问控制。但仍有进一步细化的空间,以实现更精确的权限管理。 |
waterlovemelon
approved these changes
Jun 10, 2026
mhduiy
approved these changes
Jun 11, 2026
BLumia
approved these changes
Jun 11, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BLumia, mhduiy, robertkill, waterlovemelon 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 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.
Summary
org.deepin.dde.Face1DBus policy allowed any local user to call all methods includingEnrollStart/VerifyStart/Deletevia<policy context=\default\><allow send_destination=\org.deepin.dde.Face1\/></policy>.Fix: Tighten the default policy to only permit standard DBus interfaces (Introspectable/Peer/Properties), deny the
org.deepin.dde.Face1interface for unprivileged users.deepin-daemongroup androotretain full access.Changes
msic/dbus-conf/org.deepin.dde.Face1.conf— DBus policy:deepin-daemongroup: allow everythingroot: allow everythingRationale
The actual callers of Face1 are:
deepin-authentication(runs as root, already has its own caller authorization via commitIa92a3cdb)deepin-security-loader(attachesdeepin-daemongroup)No end-user application directly calls
org.deepin.dde.Face1.Verification
Tested on debug machine (10.20.9.188):
EnrollStartAccess deniedEnrollStopAccess deniedVerifyStartAccess deniedVerifyStopAccess deniedDeleteAccess deniedgetClaimgetListgetCharaTypePMS: BUG-364733
Influence: 普通用户不再能直接通过 qdbus/busctl 调用 Face1 敏感方法
Summary by Sourcery
Restrict DBus access to the org.deepin.dde.Face1 interface so only root and deepin-daemon processes can invoke its methods while regular users are limited to standard DBus interfaces.
Bug Fixes:
Enhancements: