ARM-software / devlib

Library for interaction with and instrumentation of remote devices.
Apache License 2.0
47 stars 78 forks source link

Dmesg as root needs to check sysctl #653

Closed douglas-raillard-arm closed 11 months ago

douglas-raillard-arm commented 11 months ago

Dmesg collector currently checks a kernel config option that only sets the default for sysctl. Instead, it should check the sysctl to know if we need root:

https://www.cyberciti.biz/faq/how-to-prevent-unprivileged-users-from-viewing-dmesg-command-output-on-linux/

douglas-raillard-arm commented 11 months ago

Other things might be affected similarly, might be good to check all uses of kernel config in devlib