Repository navigation
fix(power): deny inactive authorization without prompting - #200
Conversation
Reject inactive-session power authorization without authentication prompts and log rejected D-Bus callers. PMS: BUG-379055 PMS: BUG-377891
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThe power-system plugin now enforces non-interactive denial for inactive-session polkit requests, logs the rejected D-Bus call context, and returns an explicit access-denied response instead of allowing an authentication prompt. Sequence diagram for inactive-session power authorization denialsequenceDiagram
participant Client as D-Bus Client
participant Manager as SystemPowerManager
participant Polkit as Polkit Authority
Client->>Manager: authorizePowerAction()
Manager->>Polkit: Check authorization for kPowerAction
Polkit-->>Manager: result != Yes
Manager->>Manager: qWarning(logPowerSystem)
Manager-->>Client: AccessDenied: Authentication failed
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review🤖 AI 代码审查报告📊 总体评价
🔍 详细分析1. 语法逻辑 ✅评价: 语法正确,逻辑清晰 ✅ 通过 潜在问题: 建议: [] 2. 代码质量 ✅评价: 代码结构清晰,注释完整 ✅ 通过 潜在问题: 建议: [] 3. 代码性能 ✅评价: 性能良好,资源使用合理 ✅ 通过 潜在问题: 建议: [] 4. 代码安全 🔒评价: 存在0个安全漏洞 ✅ 通过
安全漏洞详情: 建议: [] 💡 改进建议代码示例无需修复,当前代码已符合最佳实践。本报告由 AI 代码审查工具自动生成 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: fly602, mhduiy 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 |
|
/forcemerge |
|
This pr force merged! (status: blocked) |
Summary
Verification
plugin-power-systemPMS: BUG-379055
PMS: BUG-377891
Summary by Sourcery
Prevent inactive-session power actions from triggering authentication dialogs while improving diagnostics for rejected requests.
Bug Fixes: