Skip to content
  1. Oct 31, 2013
  2. Oct 23, 2013
  3. Oct 16, 2013
  4. Oct 06, 2013
  5. Sep 19, 2013
    • Andrey Moiseev's avatar
      Input: i8042 - i8042_flush fix for a full 8042 buffer · 2f0d2604
      Andrey Moiseev authored
      
      
      When 8042 internal data buffer is full, the driver
      erroneously decides that the controller is not present.
      
      i8042_flush returns the number of flushed bytes, which is
      in 0 - I8042_BUFFER_SIZE range inclusive. Therefore, i8042_flush
      has no way to indicate an error. Moreover i8042_controller_check
      takes initially full buffer (i8042_flush returned
      I8042_BUFFER_SIZE) as a sign of absence of the controller.
      
      Let's change i8042 to return success/error instead and make sure
      we do not return error prematurely.
      
      Signed-off-by: default avatarAndrey Moiseev <o2g.org.ru@gmail.com>
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      2f0d2604
  6. Sep 18, 2013
  7. Sep 08, 2013
    • David Herrmann's avatar
      Input: evdev - add EVIOCREVOKE ioctl · c7dc6573
      David Herrmann authored
      If we have multiple sessions on a system, we normally don't want
      background sessions to read input events. Otherwise, it could capture
      passwords and more entered by the user on the foreground session. This is
      a real world problem as the recent XMir development showed:
        http://mjg59.dreamwidth.org/27327.html
      
      We currently rely on sessions to release input devices when being
      deactivated. This relies on trust across sessions. But that's not given on
      usual systems. We therefore need a way to control which processes have
      access to input devices.
      
      With VTs the kernel simply routed them through the active /dev/ttyX. This
      is not possible with evdev devices, though. Moreover, we want to avoid
      routing input-devices through some dispatcher-daemon in userspace (which
      would add some latency).
      
      This patch introduces EVIOCREVOKE. If called on an evdev fd, this revokes
      device-access irrecoverably for that *single* open-file. Hence, once you
      call EVIOCREVOKE on any dup()ed fd, all fds for that open-file will be
      rather useless now (but still valid compared to close()!). This allows us
      to pass fds directly to session-processes from a trusted source. The
      source keeps a dup()ed fd and revokes access once the session-process is
      no longer active.
      Compared to the EVIOCMUTE proposal, we can avoid the CAP_SYS_ADMIN
      restriction now as there is no way to revive the fd again. Hence, a user
      is free to call EVIOCREVOKE themself to kill the fd.
      
      Additionally, this ioctl allows multi-layer access-control (again compared
      to EVIOCMUTE which was limited to one layer via CAP_SYS_ADMIN). A middle
      layer can simply request a new open-file from the layer above and pass it
      to the layer below. Now each layer can call EVIOCREVOKE on the fds to
      revoke access for all layers below, at the expense of one fd per layer.
      
      There's already ongoing experimental user-space work which demonstrates
      how it can be used:
        http://lists.freedesktop.org/archives/systemd-devel/2013-August/012897.html
      
      
      
      Signed-off-by: default avatarDavid Herrmann <dh.herrmann@gmail.com>
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      c7dc6573
  8. Sep 07, 2013
  9. Aug 30, 2013
  10. Aug 29, 2013
  11. Aug 27, 2013
  12. Aug 26, 2013
  13. Aug 25, 2013
  14. Aug 15, 2013
  15. Aug 14, 2013
  16. Aug 13, 2013