Userland patch level

Dag-Erling Smørgrav des at des.no
Sat Oct 5 18:11:25 UTC 2013


The attached patch adds a shell script, /libexec/freebsd-version, which
has the current version patch level hardcoded and prints them when run.
It can also be used to extract the version and patch level from the
installed kernel, even before rebooting after an upgrade.  The goal is
to be able to correctly determine the userland version in situations
where it does not match what the running kernel reports, which is
commonly the case when using freebsd-update or when running inside a
jail.  In the long run, this will make it possible for `pkg audit` and
similar tools to correctly report a vulnerable userland.

DES
-- 
Dag-Erling Smørgrav - des at des.no

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freebsd-version.diff
Type: text/x-patch
Size: 9168 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20131005/1c386b92/attachment.bin>


More information about the freebsd-arch mailing list