rkvm icon indicating copy to clipboard operation
rkvm copied to clipboard

User-level uinput permissions

Open JPenuchot opened this issue 2 years ago • 5 comments

It just came to me that Sunshine emulates devices the same way rkvm does. However Sunshine doesn't require root permissions to do so, but instead requires user permission to access uinput through a udev rule.

It would be very nice to be able to run rkvm as a user as it would be more secure and make configuration much easier. I'll try to figure a way to do it.

Regards, Jules

JPenuchot avatar Oct 29 '23 09:10 JPenuchot

Good find, thanks Jules. Do you know if this is done automatically when installed from the package manager or if you need to do it manually?

htrefil avatar Nov 12 '23 09:11 htrefil

The build system puts it where it needs to be, and given the AUR package recipe it looks there is nothing else to do.

JPenuchot avatar Nov 13 '23 10:11 JPenuchot

NB: The udev rule from Sunshine has the uaccess tag. This means users can access uinput only when they are logged in (see: https://wiki.archlinux.org/title/Users_and_groups#Pre-systemd_groups).

JPenuchot avatar Nov 13 '23 11:11 JPenuchot

I would also appreciate non-root usage. I don't need this before unlocking my user account on server or client.

LSeelig avatar Jul 16 '24 15:07 LSeelig