htrefil / rkvm

Virtual KVM switch for Linux machines
MIT License
385 stars 50 forks source link

User-level uinput permissions #53

Open JPenuchot opened 8 months ago

JPenuchot commented 8 months ago

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

htrefil commented 7 months ago

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?

JPenuchot commented 7 months ago

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 commented 7 months ago

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).