From owner-freebsd-questions@freebsd.org Fri Oct 23 17:48:07 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6ACDDA1D808 for ; Fri, 23 Oct 2015 17:48:07 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-yk0-x235.google.com (mail-yk0-x235.google.com [IPv6:2607:f8b0:4002:c07::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2D06FFA3 for ; Fri, 23 Oct 2015 17:48:07 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by ykba4 with SMTP id a4so121648345ykb.3 for ; Fri, 23 Oct 2015 10:48:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=bfmvGQ1d70rDFVy2n65fbPn+rrBoAB1B2IMMqlwlKYY=; b=dXbkjbjY8kh4eT+ibVKwb10bdK2MM5Mq/BFrZ7u9d5siZ8BnqhjbOWpOncxWNVtEUV ZZVLpXnPGz9H42dU/f20BVQMa0ZuGX49OHYdkc8NqqkMfI6mpqXolc51mX5a9Cm2XrbO 4BztkA9X4WFGIBa9eZ8QDRd8C6XQmANNpUaOyPIZMhESBRrHzgsfRcO9hrraib/0K4kX RPHwE8pq2RebWIMLnPJR3KFUlZzVBnFdPNkWxHkZ5CuIYUw+O4mNKjIayYDKqJFA3mg3 ++jurePYHjVWPpJBws5dxT/+biZrRS8eVeDrLQaM1M7TuZCZZ1UdZ0GPb3F532lAzsqI ytHw== X-Received: by 10.129.103.7 with SMTP id b7mr1214115ywc.293.1445622486286; Fri, 23 Oct 2015 10:48:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.196.195 with HTTP; Fri, 23 Oct 2015 10:47:46 -0700 (PDT) In-Reply-To: <1445622325.1169.29.camel@michaeleichorn.com> References: <20151023090805.5484ce9b@freyja.zeit4.iv.bundesimmobilien.de> <1445622325.1169.29.camel@michaeleichorn.com> From: Michael Schuster Date: Fri, 23 Oct 2015 19:47:46 +0200 Message-ID: Subject: Re: replace uname -a informational string To: "Michael B. Eichorn" Cc: "O. Hartmann" , freebsd-questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2015 17:48:07 -0000 I seem to remember there's a trick using dtrace where you intercept the uname syscall/library call .. that was on Solaris, though, don't know how that would map onto FreeBSD. regards Michael On Fri, Oct 23, 2015 at 7:45 PM, Michael B. Eichorn wrote: > 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? > > > > > 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 > -- Michael Schuster http://recursiveramblings.wordpress.com/