From nobody Tue Oct 1 11:36:43 2024 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XHwrZ28LCz5Xjdp for ; Tue, 01 Oct 2024 11:36:46 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [IPv6:2001:19f0:7400:8808:123::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4XHwrY64s6z506r; Tue, 1 Oct 2024 11:36:45 +0000 (UTC) (envelope-from jamie@catflap.org) Authentication-Results: mx1.freebsd.org; none X-Catflap-Envelope-From: Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [209.250.224.51]) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5) with ESMTP id 491BahwM023301; Tue, 1 Oct 2024 12:36:43 +0100 (BST) (envelope-from jamie@donotpassgo.dyslexicfish.net) Received: (from jamie@localhost) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5/Submit) id 491BahKt023300; Tue, 1 Oct 2024 12:36:43 +0100 (BST) (envelope-from jamie) From: Jamie Landeg-Jones Message-Id: <202410011136.491BahKt023300@donotpassgo.dyslexicfish.net> Date: Tue, 01 Oct 2024 12:36:43 +0100 Organization: Dyslexic Fish To: kevans@FreeBSD.org, jamie@catflap.org, freebsd-current@FreeBSD.org Subject: Re: weekly locate error Was: September 2024 stabilization week References: <3313f951-4f9e-4298-bbd8-f82c5a15a0e3@protected-networks.net> <202410010036.4910aIoW095390@donotpassgo.dyslexicfish.net> <21c4125f-0ac0-46f4-9f5c-9f14a3e7e397@FreeBSD.org> In-Reply-To: <21c4125f-0ac0-46f4-9f5c-9f14a3e7e397@FreeBSD.org> User-Agent: Heirloom mailx 12.4 7/29/08 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (donotpassgo.dyslexicfish.net [209.250.224.51]); Tue, 01 Oct 2024 12:36:44 +0100 (BST) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:7400::/38, country:US] X-Rspamd-Queue-Id: 4XHwrY64s6z506r X-Spamd-Bar: ---- Kyle Evans wrote: > Yes, my proposal is that it stops doing that and we teach updatedb to > handle the priv-dropping instead, so that you get the same behavior no > matter how you execute it. Ahhh OK, I get you now. sorry, I musunderstood, I thought you meant the current "periodic" method runs the filesystem walk as root, but when you said "if someone really wants to complain that they can't document all filenames on the system.", i guess you were referring to those who may call /usr/libexec/locate.updatedb directly as root. For what it's worth, in addition to the periodic job, I do actually run a less frequent privileged direct run of /usr/libexec/locate.updatedb (with the output in a suitably locked directory!). This proposed change wouldn't be an issue to me, but as a data point, there may be quite a few others who do so too. Cheers, Jamie