-
-
Notifications
You must be signed in to change notification settings - Fork 11
Description
I think it would make sense to enable rootless mode for YeetMouseGui.
I could imagine several ways:
-
Set permissions to the module parameters to 666.
Pros: No modification of YeetMouseGui required
Cons: Too permissive. Module parameters should not be writable by all users -
Set permissions to the modules parameters 664 and change owner to e.g. root:yeetmouse. Add user to yeetmouse group
Pros: No modification of YeetMouseGui required and not too permissive
Cons: User needs to logout and log back in. From then on, he can change the mouse settings -
Use an intermediate control deamon. Similar permissions like in 2) could be used. That deamon then runs as yeetmouse:yeetmouse. YeetMouseGui then speaks to the deamon directly
Pros: The deamon can do so much more like loading persistent config files (no need to recompile config.h into the module to have persistent mouse settings)
Cons: Needs slight rewrite of YeetMouseGui. Would still be permissive (everyone could just talk to the deamon, if no ACLs are added).
I like option 3 because it offers a way to set parameters in a config file and reload them on boot from e.g. /etc/yeetmouse.conf
However, the same would be possible with option 2) & 1) but here, each user can load his own preferred settings when he logs in e.g. with a simple script.
Also option 1) and 2) are least invasive (just change permissions e.g. via udev rules and thats it).
What do you think?