From nobody Sat Mar 05 22:25:54 2022 X-Original-To: freebsd-emulation@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 33E7519F4E3B; Sat, 5 Mar 2022 22:26:13 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K9zpD2lDdz4kxy; Sat, 5 Mar 2022 22:26:12 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: by mail-qk1-x72b.google.com with SMTP id t21so9185142qkg.6; Sat, 05 Mar 2022 14:26:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Z8kdZjNl0HAMSboaYynZB59JlVtBgX32lyT1vYjUd8s=; b=NEkoHVLkk6Ch77RJ6gQDoP5UOJk1S5LibW7HMPkd1gCsV56CHr6hfw4kiNVn2tBii0 poCCQpYu9GrdWdl7vPwKipf1BDSj92Um4OXfZeqtWNjdJ7uvCShhuFkzOIsdG9mrbHCi 1YFVUMlxGGQL6m+GgJPb3fSKhQrrbpQKubs9dQh7q4wTLkc9g0sE+JN5GVNy6A8BDMsG W/xtO3eWKkqbMVveP2Le0MpxoKQz4dRXXjcsM6h8TWpXj4mC27hNZCXr9FuGjuYmEWZB sQ4P8Va9DIK93LdH0fvzmD16v80+CrOIklyWzf9tiLY2NHo6MlclG3BG3DdYvICyeA06 KiTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Z8kdZjNl0HAMSboaYynZB59JlVtBgX32lyT1vYjUd8s=; b=8B6icNdMh3ISElOe7XAHakzMaUkEfaezwsp9pRR7IxzE0xPOBBrGnkpQ72Ypx4/dey BjTDIGGhS6zLV3XZAwSUYjf0NXQJU9fwSA3BMskwLk9AZmIgCmWMDc2gROBrklNzbFXl 1M3m6o0+3tudsmczhum/n6Zu2E+t5HoFEsCSLrQpzCEMmTBz9+SkgbjyVUFR8afZGfTD TQXbgcHDIzCs9vpx83O6c5njyPwEV54mNrOMf/CCeuAGrAm+zfDJOcYE64ZhLjv4vhqH tWsQthhhGvrUX2ErEArlXUbgDyAJ4bMF6/0QuRcz6jB2GHafZUhBD2S+qffMLtOe0WC7 12nQ== X-Gm-Message-State: AOAM530/GDbtLEadPW2FhkG4IIHB7f+dY9XafvmnJrKUl4oEEzJZQcJx MI9HnXTxAhmOfACC0elO4qDYPp/6FqyUILCOzacarQl/HrI= X-Google-Smtp-Source: ABdhPJx/+qFHOUWYN7Ah5JFRSK91xuhGaBo+/A8A6GlCHwhM7WBd8Fia1jd1XPjwyG7YauOsS+R24X3tQOuyM7otsjo= X-Received: by 2002:a05:620a:4609:b0:67a:de19:5607 with SMTP id br9-20020a05620a460900b0067ade195607mr3035747qkb.594.1646519165684; Sat, 05 Mar 2022 14:26:05 -0800 (PST) List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Sami Halabi Date: Sun, 6 Mar 2022 00:25:54 +0200 Message-ID: Subject: Re: adding boot_id to procfs for linux support To: eadler@freebsd.org, kostikbel@gmail.com, FreeBSD virtualization , freebsd-emulation@freebsd.org Content-Type: multipart/alternative; boundary="000000000000fc8f1905d9801d9f" X-Rspamd-Queue-Id: 4K9zpD2lDdz4kxy X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=NEkoHVLk; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sodynet1@gmail.com designates 2607:f8b0:4864:20::72b as permitted sender) smtp.mailfrom=sodynet1@gmail.com X-Spamd-Result: default: False [-3.98 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_HAM_LONG(-0.98)[-0.984]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::72b:from]; NEURAL_HAM_SHORT(-1.00)[-0.997]; MLMMJ_DEST(0.00)[freebsd-virtualization,freebsd-emulation]; FREEMAIL_TO(0.00)[freebsd.org,gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N --000000000000fc8f1905d9801d9f Content-Type: text/plain; charset="UTF-8" btw: as stated in: https://www.kernel.org/doc/html/latest/admin-guide/sysctl/kernel.html#random uuid should be regenerated everytime its read and boot_id should be set once Sami On Sun, Mar 6, 2022 at 12:22 AM Sami Halabi wrote: > hi, > opened a bug report: *Bug 262369* > > hope someone can pick this and implement quickly. > sami > > On Sun, Mar 6, 2022 at 12:13 AM Sami Halabi wrote: > >> Hi, >> Linuxulator is great. however it has: >> /proc/sys/kernel/random/uuid >> which basically emulates boot_id for linux, but many programs refe to : >> /proc/sys/kernel/random/boot_id >> >> i tried to symlink (ln -s /proc/sys/kernel/random/uuid >> /proc/sys/kernel/random/boot_id) but it seems a redonly dir >> >> I think this should be added for linux compatibility or create also >> boot_id file (with the same value?) >> >> how can I add this as root if possible ? or maybe ad this for linuxulator >> (as a bug?) >> >> Sami >> >> -- >> Sami Halabi >> Information Systems Engineer >> NMS Projects Expert, FreeBSD SysAdmin Expert >> Asterisk Expert >> > > > -- > Sami Halabi > Information Systems Engineer > NMS Projects Expert, FreeBSD SysAdmin Expert > Asterisk Expert > -- Sami Halabi Information Systems Engineer NMS Projects Expert, FreeBSD SysAdmin Expert Asterisk Expert --000000000000fc8f1905d9801d9f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
btw: as stated in:=C2=A0https://www.kernel.o= rg/doc/html/latest/admin-guide/sysctl/kernel.html#random

=
uuid should be regenerated everytime=C2=A0its read
and boot_= id should be set once

Sami

On Sun, Mar 6, 202= 2 at 12:22 AM Sami Halabi <sodynet= 1@gmail.com> wrote:
hi,
opened a bug report:=C2=A0 Bug=C2=A0262369
hope = someone=C2=A0can pick this and implement quickly.
sami

On Su= n, Mar 6, 2022 at 12:13 AM Sami Halabi <sodynet1@gmail.com> wrote:
Hi,
Linuxula= tor is great. however it has:
/proc/sys/kernel/random/uuid
<= div>which basically=C2=A0emulates boot_id for linux, but many programs refe= to :
/proc/sys/kernel/random/boot_id

i = tried to symlink (ln -s=C2=A0 /proc/sys/kernel/random/uuid=C2=A0 /proc/sys/kernel/random/boot_id) but it seems a redonly=C2=A0dir
=
I think this should be added for linux compatibility or crea= te also boot_id file (with the same value?)

how ca= n I add this as root if possible ? or maybe ad this for linuxulator (as a b= ug?)

Sami

--
<= div dir=3D"ltr">
Sami Halabi
Info= rmation Systems Engineer
NMS Projects Expert,=C2=A0FreeBSD SysAdmin Expert
Asterisk Expert=


--
Sami Halabi
Information Systems= Engineer
NMS Projects Expert,=C2=A0FreeBSD SysAdmin Expert
Asterisk Expert


--
Sami Hala= bi
Information Systems Engineer
NMS Projects Expert,=C2=A0FreeBSD SysAdmin Expert
Aste= risk Expert
--000000000000fc8f1905d9801d9f--