evdev: get devnum through sysctl when available#15
Open
Defenso-QTH wants to merge 1 commit into
Open
Conversation
D56968 evdev: add devnum sysctl (https://reviews.freebsd.org/D56968) makes devnum accessible through the sysctl interface, which can be used from within a jail that does not have access to the input devices through devfs. Use those sysctl values when available and keep the former stat(2) on devfs code path otherwise. Signed-off-by: Quentin Thébault <quentin.thebault@defenso.fr> Sponsored-by: Defenso
Author
|
This will enable a cleaner patch to make libinput work in jails that have no access to input devices through devfs but can get fds to them using a seat manager (e.g. seatd). See https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1471 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
D56968 evdev: add devnum sysctl (https://reviews.freebsd.org/D56968) makes devnum accessible through the sysctl interface, which can be used from within a jail that does not have access to the input devices through devfs.
Use those sysctl values when available and keep the former stat(2) on devfs code path otherwise.