-
Notifications
You must be signed in to change notification settings - Fork 16
fix: Enable Xauth access control for X11 sessions #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Use Xauth instead of unsafe xhost +
|
Hi @calsys456. Thanks for your PR. I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideSwitch X11 session authorization from xhost-based access control to Xauthority (xauth) and ensure the XAUTHORITY file is always set up for X11 sessions, including greeter sessions. Sequence diagram for X11 session startup with Xauth-based access controlsequenceDiagram
actor User
participant DisplayManager as DisplayManagerHelper
participant UserSession
participant Xorg as XorgServer
participant XauthFile as XauthorityFile
User ->> DisplayManager: Start X11 login
DisplayManager ->> Xorg: Start Xorg display server
Xorg -->> DisplayManager: Display ready
DisplayManager ->> UserSession: Launch session (env XDG_SESSION_TYPE=x11)
UserSession ->> UserSession: Check XDG_SESSION_TYPE == x11
alt X11 session
UserSession ->> DisplayManager: Request auth cookie
DisplayManager -->> UserSession: Cookie bytes
UserSession ->> XauthFile: Create temp file /tmp/xauth_XXXXXX
UserSession ->> XauthFile: Write cookie entry
UserSession ->> UserSession: Set env XAUTHORITY to xauth file
UserSession ->> UserSession: setProcessEnvironment(env)
alt Greeter session (XDG_SESSION_CLASS=greeter)
UserSession ->> Xorg: Start greeter command with XAUTHORITY
else Regular user session
UserSession ->> Xorg: Start user session command with XAUTHORITY
end
else Non-X11 session
UserSession ->> UserSession: Skip Xauth setup
UserSession ->> WaylandOrOther: Start non-X11 session
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: calsys456, 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 |
Use Xauth instead of unsafe xhost +
Summary by Sourcery
Bug Fixes: