NetBSD Problem Report #53020
From paul@whooppee.com Mon Feb 12 23:49:48 2018
Return-Path: <paul@whooppee.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 649827A1EA
for <gnats-bugs@gnats.NetBSD.org>; Mon, 12 Feb 2018 23:49:48 +0000 (UTC)
Message-Id: <20180212234915.EF12916E44@speedy.whooppee.com>
Date: Tue, 13 Feb 2018 07:49:15 +0800 (+08)
From: paul@whooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@NetBSD.org
Subject: Enhancement: uname(1) should be able to read a kernel image file
X-Send-Pr-Version: 3.95
>Number: 53020
>Category: bin
>Synopsis: teach uname(1) to read kernel image file
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Feb 12 23:50:00 +0000 2018
>Last-Modified: Tue Feb 13 00:00:01 +0000 2018
>Originator: Paul Goyette
>Release: NetBSD 8.99.12
>Organization:
+------------------+--------------------------+----------------------------+
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |
+------------------+--------------------------+----------------------------+
>Environment:
System: NetBSD speedy.whooppee.com 8.99.12 NetBSD 8.99.12 (SPEEDY 2018-02-12 00:00:12 UTC) #3: Mon Feb 12 06:57:12 UTC 2018 paul@speedy.whooppee.com:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY amd64
Architecture: x86_64
Machine: amd64
>Description:
It would be useful for uname(1) to be able to extract the operating system
details from an arbitrary kernel image, via /dev/kmem grovelling, in
addition to being able to extract from the running OS via uname(3).
>How-To-Repeat:
>Fix:
>Audit-Trail:
From: Kamil Rytarowski <n54@gmx.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: bin/53020: Enhancement: uname(1) should be able to read a kernel
image file
Date: Tue, 13 Feb 2018 00:54:21 +0100
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--pO4FJu5hSuCBI0vUgHliGNxbwFRTf3xsC
Content-Type: multipart/mixed; boundary="veggqkgGFM78jk8bBKJvB1aqHkcdlPuAg";
protected-headers="v1"
From: Kamil Rytarowski <n54@gmx.com>
To: gnats-bugs@NetBSD.org
Message-ID: <2f172440-5074-b73d-9de5-19b6e6cd8cc3@gmx.com>
Subject: Re: bin/53020: Enhancement: uname(1) should be able to read a kernel
image file
References: <pr-bin-53020@gnats.netbsd.org>
<20180212234915.EF12916E44@speedy.whooppee.com>
<20180212235000.A51BA7A26A@mollari.NetBSD.org>
In-Reply-To: <20180212235000.A51BA7A26A@mollari.NetBSD.org>
--veggqkgGFM78jk8bBKJvB1aqHkcdlPuAg
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
It makes sense. The current solution to achieve the same is to use what(1=
):
$ what /netbsd
/netbsd
NetBSD 8.99.7 (GENERIC) #12: Fri Nov 24 21:50:24 CET 2017
--veggqkgGFM78jk8bBKJvB1aqHkcdlPuAg--
--pO4FJu5hSuCBI0vUgHliGNxbwFRTf3xsC
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQJABAEBCAAqFiEELaxVpweEzw+lMDwuS7MI6bAudmwFAlqCKS0MHG41NEBnbXgu
Y29tAAoJEEuzCOmwLnZsSTcP/RtFuuAqoTY+7OxqDx5REtb6SbIJA4LhrEsEz9eC
yjIRv/cPVl6EwIJquJwZNBZIbY2TrTDsVEuLi3zoSbdw1azyGtekJMdL7u3cshCc
/T1BG2VzdQqvp0X0iJPIgiA69aVfnjyx57GyZ+VoO2lW0Wpv2bQxCrPDPlLqCnvI
jJmP3sGMiKtyGiL3E+EggqtkBkLT/dqF1V+laHytRZLX3Px+rys9sN5+pAUYwUuS
F6kXAg1xfyGe6fP0+s6hoMKJ3S+nFNp08B/XhYf8ibiOGK+Y4Ye8D0mlinKqyl6T
0GGo0ZiPagWv32HN3RgSm1axX893njOeMm2a9GJvlSNmjFBKBKlvCWaO0OKq7g+W
ZL0V5FhaawlQ4uyiUcGFzBIhKZCJcklzyNN9XfJOYvsjFxzHZlZilk6cbMIIH4+L
rZdlP1FyZGwAGcCwBM+7/kDkZRpkGT3URsiN+ROGqW2doesG0WNfuPcFHipYHKW/
/gx0FJ+Umd/+OvF5fWRAtOFG36S8cDoASmqeVGLX62zmLHm31dhpAj3Citbr43J1
EGLqLS7Io+cXj+XwViEWv9bwSUg89hdI8m2stuzcO3XavIkfHjPC4S9XbM2GaGcD
3mi5HskwQLE0KYU1HrT5a6896BcnY34WB6X8KlCEnzrKg8T42rIld1vB/23eGdVV
vCPB
=UrI6
-----END PGP SIGNATURE-----
--pO4FJu5hSuCBI0vUgHliGNxbwFRTf3xsC--
From: Paul Goyette <paul@whooppee.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: bin/53020: Enhancement: uname(1) should be able to read a kernel
image file
Date: Tue, 13 Feb 2018 07:57:18 +0800 (+08)
On Mon, 12 Feb 2018, Kamil Rytarowski wrote:
> It makes sense. The current solution to achieve the same is to use what(1=
> ):
>
> $ what /netbsd
>
> /netbsd
> NetBSD 8.99.7 (GENERIC) #12: Fri Nov 24 21:50:24 CET 2017
Yes, but that doesn't allow retrieval of selectable items as do the
command-line options for uname(1).
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.