fix: stabilize Treeland VT session switching#94
Conversation
There was a problem hiding this comment.
Sorry @zccrs, your pull request is larger than the review limit of 150000 diff characters
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: zccrs 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 |
1dcc5df to
fec0370
Compare
Depend on dde-seatd.service from the dde-seatd package and point Treeland at /run/dde-seatd.sock. This keeps DDM from installing its own seatd service while preserving the product runtime wiring.
fec0370 to
235d3d6
Compare
Connect DDM to the dde-seatd control socket and register Treeland user VTs with the compositor owner pidfd. This keeps DDM focused on session policy while dde-seatd owns grouped VT switching and seat client lifetime.
235d3d6 to
64abec6
Compare
deepin pr auto review这份代码变更非常庞大,主要涉及将显示管理器 (ddm) 的 seat 管理从原生的 以下是对该 diff 的详细代码审查,涵盖语法逻辑、代码质量、性能和安全性四个方面: 一、 语法与逻辑
二、 代码质量
三、 代码性能
四、 代码安全
总结该 PR 的架构调整方向是合理的,特别是将 PAM 和 Session 开启隔离到 Helper 进程,有效防止了主进程阻塞。然而,安全性和健壮性是最大的隐患:密码在 IPC 传输过程中的残留清理、Helper 进程的 FD 泄露、以及同步阻塞调用可能导致的 DM 卡死问题,需要在合并前重点修复或确认。建议优先解决管道读取超时/阻塞问题以及环境变量泄露问题。 |
Summary
Validation
Related