Revert "feat: integrate security loader into session startup" - #227
Revert "feat: integrate security loader into session startup"#227fly602 wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: fly602 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 |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideReverts the previously added security loader integration and its test harness from dde-session, simplifying startup while still notifying systemd when the session is ready. Sequence diagram for updated dde-session startup and systemd readiness notificationsequenceDiagram
actor systemd
participant dde_session
systemd->>dde_session: start dde-session-manager service
dde_session->>dde_session: main parse systemd-service option
dde_session->>dde_session: create Session and IOWaitWatcher
dde_session->>systemd: sd_notify 0 "READY=1"
systemd->>systemd: mark dde-session-manager as ready
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
…式安全启动的注册 原因:配合 dde-daemon 回退安全启动校验的方案。因为该接口的安全校验 影响范围较广,涉及控制中心、快捷键、任务栏插件等。由于项目架构问题, 在这些项目上加安全启动很复杂,且会严重影响这些项目的架构。 后续计划 需重新评估安全方案的整体设计,制定更契合 V25 架构的分阶段实施方案。
deepin pr auto review★ 总体评分:100分■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 // 可选的防御性编程改进:检查 sd_notify 返回值并记录日志,便于排查 systemd 状态同步问题
#include <systemd/sd-daemon.h>
#include <cstring>
// ... (省略中间代码)
int ret = sd_notify(0, "READY=1");
if (ret < 0) {
qWarning() << "Failed to notify systemd:" << strerror(-ret);
}
// ... |
This reverts commit 8b39a25.
回退 飞行模式安全启动的注册
原因:配合dde-daemon回退安全启动校验的方案。因为该接口的安全校验影响范围较广,涉及到控制中心、快捷键、任务栏插件等。由于项目架构问题,在这些项目上加安全启动很复杂,而且会严重影响这些项目的架构。
后续计划
需重新评估安全方案的整体设计,制定更契合 V25 架构的分阶段实施方案。
Summary by Sourcery
Revert security loader integration from session startup and restore the previous dde-session service behavior.
Enhancements:
Build:
Chores:
Summary by Sourcery
Revert security-loader integration from dde-session startup and restore the previous session service behavior.
Enhancements:
Build:
Chores: