synaptics touchpad fixes
Hi,
The synaptics touchpad driver in XFree needs access to /dev/input/event0. Policy already defines an event_device_t type, but that type isn't set in types.fc, and the xserver also needs access to it. Patch attached.
program/xserver_macros.te renamed from program/xserver_macros.te~ +3 -0
@@ -224,6 +224,9 @@ # Use the mouse. allow $1_xserver_t mouse_device_t:chr_file rw_file_perms; +# Allow xserver to read events - the synaptics touchpad +# driver reads raw events +allow $1_xserver_t event_device_t:chr_file rw_file_perms; allow $1_xserver_t var_lib_t:dir search; rw_dir_create_file($1_xserver_t, var_lib_xkb_t)
types.fc renamed from types.fc~ +1 -0
@@ -170,6 +170,7 @@ /u?dev/logibm -c system_u:object_r:mouse_device_t /u?dev/.*mouse.* -c system_u:object_r:mouse_device_t /u?dev/input/.*mouse.* -c system_u:object_r:mouse_device_t +/u?dev/input/event.* -c system_u:object_r:event_device_t /u?dev/input/mice -c system_u:object_r:mouse_device_t /u?dev/input/js.* -c system_u:object_r:mouse_device_t /u?dev/ptmx -c system_u:object_r:ptmx_t