Open rbrisita opened 7 months ago
To resolve quickly simply touch /var/log/dmesg
, you might need elevated privileges.
The user has access to the dmesg
command and can run without elevated privileges and there is also a readable /dev/kmsg
file that is kernel messages but I don't know exactly why 01OS needs access or what messages it will act on.
Proposed PR solution:
dmesg
dmesg
to /tmp/dmesg
/tmp/dmesg
to be used in get_kernel_messages
function or None
Describe the bug The
software\source\server\utils\kernel.py
functionget_kernel_messages
is trying to access a file that doesn't exist on some Linux distros (all?) like Arch, Debian, and Fedora. Unfortunately, similar logs like/var/log/syslog
and/var/log/kern.log
have access restrictions. This is a security concern.To Reproduce Run
poetry run 01
on any Linux distro based on Arch, Debian, Fedora.Expected behavior A clean boot into 01OS.
Desktop (please complete the following information):
Additional context