A root process can write to /dev/kmsg
. This is used for logging that occurs very early, before regular logging systems are ready to do any logging.
Почему dmesg будет получать сообщения из пространства пользователя?
Вы можете использовать dmesg -u, чтобы увидеть журнал из пространства пользователя. В моем случае у меня есть лог от systemd и lvm. Почему это происходит, почему пользовательская программа может печатать в буферное кольцо ядра?
2 ответа на вопрос
Some userspace processes can write to the dmesg because they execute actions which used to belong to kernel-space processes, but which have been moved to user-space to allow easier control by users.
A classic example is udev, which, according to Wikipedia:
it handles ... all user space actions when adding/removing devices, including firmware load.
Another well-know example is FUSE, which is:
Filesystem in Userspace (FUSE) is an operating system mechanism for Unix-like computer operating systems that lets non-privileged users create their own file systems without editing kernel code.
Together with LVM, init, and so on, these tools perform kernel operations in user space; for this reason, and possibly also for continuity with the instruments they replaced (devfs, hotplug, ...), their output clearly belongs in the kernel ring buffer.
Похожие вопросы
-
9
В чем разница между командами "su -s" и "sudo -s"?
-
4
Требуется хороший бесплатный образ Ubuntu Server VMWare
-
4
Каковы различия между основными дистрибутивами Linux? Я замечу?
-
-
6
Просмотр журнала в Windows
-
2
Ограничить использование процессора для Flash в Firefox?
-
2
Как мне заставить мой микрофон работать под Debian GNOME?
-
2
Конки установки - образцы / идеи?
-
3
Каковы различия между оконными менеджерами Linux?
-
2
ThunderBird / Синхронизация освещения с SE k770i
-
4
Файловая система Linux