From owner-freebsd-questions@freebsd.org Thu Nov 30 14:47:21 2017 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 342AAE5D450 for ; Thu, 30 Nov 2017 14:47:21 +0000 (UTC) (envelope-from kpielorz_lst@tdx.co.uk) Received: from smtp.krpservers.com (smtp.krpservers.com [62.13.128.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.krpservers.com", Issuer "RapidSSL SHA256 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D1CE666A97 for ; Thu, 30 Nov 2017 14:47:20 +0000 (UTC) (envelope-from kpielorz_lst@tdx.co.uk) Received: from [10.12.30.106] (host165-120-222-85.range165-120.btcentralplus.com [165.120.222.85]) (authenticated bits=0) by smtp.krpservers.com (8.15.2/8.15.2) with ESMTPSA id vAUElGXY010588 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 30 Nov 2017 14:47:18 GMT (envelope-from kpielorz_lst@tdx.co.uk) Date: Thu, 30 Nov 2017 14:46:58 +0000 From: Karl Pielorz To: "Kevin P. Neal" cc: freebsd-questions@freebsd.org Subject: Re: Security updates / 'procstat' to find daemons to restart - reliable? Message-ID: <675C99D459C8A5345CBCDFE3@[10.12.30.106]> In-Reply-To: <20171130142120.GA71392@neutralgood.org> References: <45CAA442C95AA5B35EF0AF7C@[10.12.30.106]> <20171130142120.GA71392@neutralgood.org> X-Mailer: Mulberry/4.0.8 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 14:47:21 -0000 --On 30 November 2017 09:21 -0500 "Kevin P. Neal" wrote: > Unverified guess: Hmm, seems a pretty good guess :) > When the library is updated the old library is deleted first. But since > the library is still open it still exists. It just doesn't show up in any > directory. That's normal Unix behavior. > > Now, the guess is that if the library doesn't show up in any directory > then procstat can't figure out the name of the library. Is there any > mention of a library that has no name? That would certainly explain the behaviour, and running a 'before' and 'after' procstat - I can see: Before 'freebsd-update install' 1093 ... r-x 460 507 31 10 CN-- vn /lib/libcrypto.so.7 After, 1093 ... r-x 460 512 31 10 CN-- vn So that appears to be the case, the file has 'changed' (i.e. inode etc.) - and is no longer available to be displayed. I can't see any obvious "marker" (other than a blank filename) for this - so I guess I have to run the check before the 'install' - note what's using what, run the install - then restart the affected software. Thanks for the guess! (I mean reply! :) Regards, -Karl