Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Oct 2015 15:55:24 -0700
From:      Karl Young <karly@kipshouse.org>
To:        "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Cc:        "Michael B. Eichorn" <ike@michaeleichorn.com>, freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: replace uname -a informational string
Message-ID:  <20151023225524.GJ31202@mailboy.kipshouse.net>
In-Reply-To: <20151023225424.49220466.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>

next in thread | previous in thread | raw e-mail | index | archive | help


O. Hartmann(ohartman@zedat.fu-berlin.de)@2015.10.23 22:54:24 +0200:
> Am Fri, 23 Oct 2015 13:45:25 -0400
> "Michael B. Eichorn" <ike@michaeleichorn.com> schrieb:
> 
> 
> First of all: Thank you very much for your concerns and answers.
> 
> > On Fri, 2015-10-23 at 09:08 +0200, O. Hartmann wrote:
> > > For security purposes, I need to replace the informations given by
> > > "uname -a"
> > > to hode the kernel build system, name et cetera.  
> > 
> > I presume you intendend 'hide' here?
> > 
> > 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.
> > 
> > https://reproducible.debian.net
> > 
> > If you want to hide the hostname, why not just build with a different
> > hostname set?
> 
> Because it is not only the hostname, uname reveals the target host, date and OS version.
> 
> 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. 

Perhaps you could mv or rm /usr/bin/uname and replace it with your own
script or binary that outputs whatever you want it to.

-karl

> 
> > 
> > > 
> > > Is there a way to achieve this via setting some knobs in the process of
> > > a
> > > buildkernel?
> > > 
> > > Please CC me, I'm not subscriber of the list.
> > > 
> > > Kind regards and thanks in advance,
> > > 
> > > O. Hartmann  
> 
> 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151023225524.GJ31202>