[SOLVED] i3status doesn't work because of sysfs restrictions
#1
Sat, 2016-09-03 08:18
imv
-
- Offline
- 11 months 3 weeks ago
- 2016-09-03
Some modules in i3status config (battery, cpu_temperature) want to access files in /sys/. However, due to GRKERNSEC_SYSFS_RESTRICT they can't do that.
Is there a way to make i3status work without ditching linux-grsec for linux-vanilla, or setting SUID bit for i3status, or recompiling the kernel?
Hello imv :)
I think that I chowned all /sys tree to root:wheel, and added my user to the wheel group, so that I can read the values (and only read them) provided by the sysfs.
This is my current solution,
1. Create file `/etc/local.d/99-sysfs-mode.start`
2. Add the following lines into it,
3. Make the file to be executable
4. Enable local service to run at boot,
5. Run local service
Thanks shulhan, that worked.