Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Apr 2013 00:08:23 +0200
From:      Dan Lukes <dan@obluda.cz>
To:        freebsd-security@freebsd.org
Subject:   Re: FreeBSD Security Advisory FreeBSD-SA-13:05.nfsserver [REVISED]
Message-ID:  <517EEF57.2030106@obluda.cz>
In-Reply-To: <201304292156.r3TLuoGP052344@freefall.freebsd.org>
References:  <201304292156.r3TLuoGP052344@freefall.freebsd.org>

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

FreeBSD Security Advisories wrote:
> To determine which implementation an NFS server is running, run the
> following command:
> 
> # kldstat -v | grep -cw nfsd
> 
> This will print 1 if the system is running the new NFS implementation,
> and 0 otherwise.

It output "2" on my 9.1-RELEASE-p2 with new NFSD as output of
kldstat -v return two lines containing word 'nfsd':

>  6    1 0xffffffff80c14000 2b38b    nfsd.ko (/boot/kernel/nfsd.ko)
>         Contains modules:
>                 Id Name
>                 202 nfsd

Someone may be confused by non 0/1 result not catched in advisory.

Either
kldstat -v | grep -wc nfsd.ko
or
kldstat | grep -wc nfsd

should be used instead the command recommended in advisory to obtain 0/1
result.

Regards

Dan




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