Is it ok to chmod a+w files under sys/platform in a desktop env?
0
votes
0
answers
259
views
I developed and maintain a keyboard backlight CLI/GUI for Linux-running Clevo laptops (https://github.com/webketje/tuxedo-backlight-control) . Some of the files this CLI/GUI needs to alter are under
/sys/devices/platform/tuxedo_keyboard/
. At the moment I am using polkit/pkexec to prompt for temporary admin permissions.
However, someone created a fork of my repo and added a commit which activates a Linux service that makes the files under the /sys/devices/platform/tuxedo_keyboard/
directory writable for all (https://github.com/encarsia/tuxedo-backlight-control/commit/34da8989613c29c0faab67220a4391c460d2aa6a) .
Obviously I would love to not have to prompt for the admin password every 5min just to change the keyboard backlight color, but I am wondering **security-wise, is this ok**? If so, how can I make sure after a new tuxedo_keyboard driver install, that the files remain writable?
Asked by webketje
(101 rep)
Mar 2, 2021, 12:39 AM