getting the running patch level

Manolis Kiagias sonic2000gr at
Mon Aug 13 19:59:21 UTC 2012

On 13/08/2012 22:27, Dag-Erling Smørgrav wrote:
> Jason Hellenthal<jhellenthal at>  writes:
>> Could I suggest... the same way that /etc/motd is already updated ?
> You could, but it wouldn't be very helpful, since /etc/rc.d/motd uses
> uname(1), which returns the kernel version.  On the contrary, once
> /etc/issue is in place, we should use that instead of uname(1) to update
> /etc/motd.

One could also set the environment variable UNAME_r to the correct value 
(either in system wide e.g. /etc/profile or to a specific user dot 
files). Only problem of course it would have to be updated to the 
correct value manually.
Or, since the correct value is always in, if src is present 
in the system a periodic script could update it automatically.
The manual updating  will cause more confusion in the long run - people 
tend to forget these things...

More information about the freebsd-security mailing list