首页 > 系统服务 > 详细

GNU Linux Boot ID Machine ID

时间:2021-07-23 16:13:48      阅读:20      评论:0      收藏:0      [点我收藏+]

https://dwaves.de/2017/06/29/gnu-linux-boot-id-machine-id/

While the Boot ID

/proc/sys/kernel/random/boot_id

is newly generated with every reboot – the Machine ID uniquely identifies the host.

It should be considered “confidential”, and must not be exposed in untrusted environments, in particular on the network.

The

/etc/machine-id

file contains the unique machine ID of the local system that is set during installation. The machine ID is a single newline-terminated, hexadecimal, 32-character, lowercase ID. When decoded from hexadecimal, this corresponds to a 16-byte/128-bit value.

The machine ID is usually generated from a random source during system installation and stays constant for all subsequent boots. Optionally, for stateless systems, it is generated during runtime at early boot if it is found to be empty.

The machine ID does not change based on local or network configuration or when hardware is replaced. Due to this and its greater length, it is a more useful replacement for the gethostid(3) call that POSIX specifies.

This machine ID adheres to the same format and logic as the D-Bus machine ID.

src: https://www.freedesktop.org/software/systemd/man/machine-id.html

http://0pointer.de/blog/projects/ids.html

GNU Linux Boot ID Machine ID

原文:https://www.cnblogs.com/arci/p/15048389.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!