opnsense-src/sys/dev/evdev
Vladimir Kondratyev f99e7b1aed evdev: export event device properties through sysctl interface
A big security advantage of Wayland is not allowing applications to read
input devices all the time. Having /dev/input/* accessible to the user
account subverts this advantage.

libudev-devd was opening the evdev devices to detect their types (mouse,
keyboard, touchpad, etc). This don't work if /dev/input/* is inaccessible.
With the kernel exposing this information as sysctls (kern.evdev.input.*),
we can work w/o /dev/input/* access, preserving the Wayland security model.

Submitted by:		Greg V <greg@unrelenting.technology>
Reviewed by:		wulf, imp
MFC after:		2 weeks
Differential Revision:	https://reviews.freebsd.org/D18694
2019-02-24 18:47:04 +00:00
..
cdev.c evdev: disable evdev if it is invoked from KDB or panic context 2018-10-27 21:04:34 +00:00
evdev.c evdev: export event device properties through sysctl interface 2019-02-24 18:47:04 +00:00
evdev.h evdev: Remove evdev.ko linkage dependency on kbd driver 2018-08-13 19:05:53 +00:00
evdev_mt.c Change my email address to wulf@FreeBSD.org in copyright headers. 2017-07-23 20:41:58 +00:00
evdev_private.h evdev: export event device properties through sysctl interface 2019-02-24 18:47:04 +00:00
evdev_utils.c evdev: Fix pause key release event in AT keyboard set 1 to evdev xlat-or. 2018-11-25 19:37:00 +00:00
input-event-codes.h [evdev] Sync event codes with Linux kernel 4.16 2018-06-03 10:53:10 +00:00
input.h [evdev] Sync event codes with Linux kernel 4.16 2018-06-03 10:53:10 +00:00
uinput.c evdev: remove soft context from evdev methods parameter list. 2018-08-13 19:00:42 +00:00
uinput.h uinput: Add FreeBSD specific ioctl to set unique identifier of input device. 2018-04-30 10:34:16 +00:00