Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Oct 2015 11:36:26 +0200
From:      Fabian Keil <freebsd-listen@fabiankeil.de>
To:        "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Cc:        <freebsd-questions@freebsd.org>
Subject:   Re: replace uname -a informational string
Message-ID:  <1b1ca543.75a62142@fabiankeil.de>
In-Reply-To: <20151024095839.2da2cb97.ohartman@zedat.fu-berlin.de>
References:  <20151023090805.5484ce9b@freyja.zeit4.iv.bundesimmobilien.de> <1445622325.1169.29.camel@michaeleichorn.com> <20151023225424.49220466.ohartman@zedat.fu-berlin.de> <20151024080936.0ff26783@X220.alogt.com> <1445658972.13154.44.camel@michaeleichorn.com> <20151024095839.2da2cb97.ohartman@zedat.fu-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/QpjOK9gyfYGHhLJpXa8hWS/
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

"O. Hartmann" <ohartman@zedat.fu-berlin.de> wrote:

> Am Fri, 23 Oct 2015 23:56:12 -0400
> "Michael B. Eichorn" <ike@michaeleichorn.com> schrieb:
>=20
> > On Sat, 2015-10-24 at 08:09 +0800, Erich Dollansky wrote:
[...]
> > > On Fri, 23 Oct 2015 22:54:24 +0200
> > > "O. Hartmann" <ohartman@zedat.fu-berlin.de> wrote:
> > >  =20
> > > > Am Fri, 23 Oct 2015 13:45:25 -0400
> > > > "Michael B. Eichorn" <ike@michaeleichorn.com> schrieb:
[...]
> > > > > On Fri, 2015-10-23 at 09:08 +0200, O. Hartmann wrote: =20
> > > > > > For security purposes, I need to replace the informations given
> > > > > > by
> > > > > > "uname -a"
> > > > > > to hode the kernel build system, name et cetera.   =20
> > > > >=20
> > > > > I presume you intendend 'hide' here?
> > > > >=20
> > > > > If you want to scrub a binaries of _all_ information about the
> > > > > building system this is a problem Debian is actively working on
> > > > > called 'reproducible builds' but is not possible today.
> > > > >=20
> > > > > https://reproducible.debian.net
> > > > >=20
> > > > > If you want to hide the hostname, why not just build with a
> > > > > different hostname set? =20
> > > >=20
> > > > Because it is not only the hostname, uname reveals the target host,
> > > > date and OS version.
> > > >=20
> > > > In our case, the image ist built on a dedicated host for a security
> > > > appliabce based on NanoBSD and I'd like to hide the OS type, the OS
> > > > name, the build box' name and the build date.=20
> > > >  =20
> > > why not replace uname at the source level then?
[...]
> > That wouldn't hide the information in any substantial way. Uname is
> > basically an abstraction of a subset of sysctls. As such, the informati=
on
> > is integral to the kernel itself. Uname is just one of many tools that
> > can be used to display this information.
> >=20
> > Fundamentally the kernel itself needs to be changed not uname.
>=20
> I'm well aware of that fact. At many places, the build-process sets varia=
bles from the
> outside world while building binaries and kernel and since I build everyt=
hing from
> scratch, I intend to manipulate those variables - if possible.

It's possible and already done on FreeBSD consumers like
ElectroBSD as one of the steps to get reproducible builds.

The variables are set by sys/conf/newvers.sh and most of them can
already be overwritten through the environment.

Fabian

--Sig_/QpjOK9gyfYGHhLJpXa8hWS/
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlYrURcACgkQBYqIVf93VJ0aiACaAphPNC7/taDOL+O/SL97GeCM
yF4AnA7jQcNsLC4mQ19fDZEWOUtipinz
=fSx8
-----END PGP SIGNATURE-----

--Sig_/QpjOK9gyfYGHhLJpXa8hWS/--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1b1ca543.75a62142>