htrefil / rkvm

Virtual KVM switch for Linux machines
MIT License
426 stars 51 forks source link

User-level uinput permissions #53

Open JPenuchot opened 1 year ago

JPenuchot commented 1 year 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 1 year 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 1 year 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 1 year 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).

LSeelig commented 4 months ago

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