KMSDRM/EVDEV: add VT switching support for FreeBSD #14346
Merged
+215
−35
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.
Description
This PR adds support for VT switching when using KMSDRM in FreeBSD.
Closes #14298
Existing Issue(s)
SDL3 uses
/dev/input/event*evdev devices to get input, so these devices need to be readable to the user. It means that the user, and the SDL, can read all events from input devices, including for instance passwords input in other VTs after switching.In this PR, the SDL simply ignores this content instead of passing it to the application, but for a secure solution, a seat management solution will be necessary. The SDL side could be implemented using libseat which offers compatibility with both seatd and (e)logind.
Testing
Done
To-do