Snap access to /dev/uinput

Bug #1622639 reported by Marcin
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd
Triaged
Wishlist
Unassigned

Bug Description

I'm trying to create snap package for application that is "driver" for my joystick (remaps buttons, creates virtual joystick):
https://github.com/uglyDwarf/evdevshift

As I didn't find useful documentation (nor examples) for snap hardware access, so I'd like to ask here:
Can snap package have access to /dev/uinput?

I've already seen, but doesn't seem useful:
http://snapcraft.io/docs/reference/interfaces
http://snapcraft.io/#snapcraft_home_how-snaps-work_integration

I've seen something that might be usefull - Cgroups, but the info is too general:
https://developer.ubuntu.com/en/snappy/guides/security-whitepaper/

Can you answer question is such application can be build in snap (and be useful)?
Can snap have access to /dev/uinput?
If yes where to find information about it?

Marcin (mwoz123)
summary: - Snap access to /dev/uinput? Possible?
+ Snap access to /dev/uinput?
description: updated
Revision history for this message
Jamie Strandboge (jdstrand) wrote : Re: Snap access to /dev/uinput?

Thank you for filing a bug. /dev/uinput is not currently included in pluggable interfaces and a new interface would need to be added for it. While that is not the case, you are free to use devmode for your snap.

Note to snappy developers, /dev/uinput gives very privileged access to input events. AFAIK the kernel doesn't (currently) provide a way to mediate these events based on device (ie, giving snap access to udev events for only a joystick) and /dev/uinput is not needed by typical applications (it is used by display servers like mir).

I suspect if this were to be implemented as an interface, we would likely call it 'input-control', and it would not auto-connect. Then in the future fine-grained mediation for uinput could be explored.

affects: snapcraft → snappy
tags: added: snapd-interface
summary: - Snap access to /dev/uinput?
+ Snap access to /dev/uinput
Changed in snappy:
importance: Undecided → Wishlist
status: New → Triaged
Michael Vogt (mvo)
affects: snappy → snapd
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.