Closed osnr closed 4 months ago
Oh, I just realized that at least on Arch the sudo
can be dropped if the user is in the tty
group. That grants rw access to /dev/tty*, which are in the list of console devices kbd attempts to open:
https://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.git/tree/src/libcommon/getfd.c#n60
Debian also has this group: https://wiki.debian.org/SystemGroups#Other_System_Groups
so probably it's enough to drop sudo
and add tty
to the groups mentioned in the readme and folk-live
it runs
sudo loadkeys
,sudo dumpkeys
, etc