On Fri, Oct 29, 2021 at 10:17:03PM +0900, matsuand wrote: > <STATUS> > stat: DP > ppkg: util-linux 2.37.2 > page: uuid_generate.3 > date: 2021/08/16 > mail: michio_matsu****@yahoo***** > name: Michio MATSUYAMA > </STATUS> > > 翻訳予約 2021/09/07 JM:02924 > gitコミット済 jm.git/manual/util-linux コメントします。 > [原文] > .sp > The uuid_generate_time() function forces the use of the > alternative algorithm which uses the current time and the > local ethernet MAC address (if available). This algorithm > used to be the default one used to generate UUIDs, but > because of the use of the ethernet MAC address, it can leak > information about when and where the UUID was generated. > This can cause privacy problems in some applications, so > the uuid_generate() function only uses this algorithm if a > high-quality source of randomness is not available. To > guarantee uniqueness of UUIDs generated by concurrently > running processes, the uuid library uses a global clock > state counter (if the process has permissions to gain > exclusive access to this file) and/or the uuidd daemon, if > it is running already or can be spawned by the process (if > installed and the process has enough permissions to run > it). If neither of these two synchronization mechanisms can > be used, it is theoretically possible that two concurrently > running processes obtain the same UUID(s). To tell whether > the UUID has been generated in a safe manner, use > uuid_generate_time_safe. > [訳文] > .sp > uuid_generate_time() 関数は、 現在時刻と (利用可能であれば) > ローカルのイーサネット MAC アドレスを用いた、 > 別のアルゴリズムを強制的に利用する。 このアルゴリズムは、 > かつては UUID を生成するデフォルトであった。 > ただしイーサネット MAC アドレスを利用することから、 > いつどこで UUID > が生成されたものであるかの情報が漏れてしまう。 > アプリケーションによっては、 > プライバシーの問題を引き起こす場合がある。 そこで > uuid_generate() 関数は、 > 高品質の乱数発生の仕組みが利用できない場合に限って、 > このアルゴリズムを利用している。 > 並列実行されているプロセスから生成される UUID であっても、 > その一意性を保証するために、 uuid ライブラリでは、 > グローバルクロックの状態カウンター (status counter) > を利用する (プロセスが、 > このファイルへの排他的アクセス権限を取得できる場合)。 > または uuidd デーモンを利用する > (これがインストールされていて、 > プロセスがその実行権限を持っている場合)。 この 2 > つの同期のメカニズムがともに利用できない場合、 2 > つの同時実行されたプロセスが、 同一の UUID > を取得することは、 理論的には可能になる。 UUID > が安全な方法で生成されたことを確認するには、 > uuid_generate_time_safe を用いること。 > または uuidd デーモンを利用する または、すでに実行中か、プロセスによって起動出来る場合、uuidd デーモンを 使用する ribbon