From nobody Tue Oct 01 16:39:23 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 4XJ3Yn4TSjz5Y4f7 for ; Tue, 01 Oct 2024 16:39:25 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XJ3Yn4062z4MPY; Tue, 1 Oct 2024 16:39:25 +0000 (UTC) (envelope-from kevans@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727800765; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WEobkHkr/bFlYhJHRlLegdBzX+BRQqraKlSKuan0Ebs=; b=pTqMRMGThGCMjDIWXzRdJjtheKVNovwqQRwkc2RvZ9sAFZnW4C4qcpG8T3fHSWHqekQgdt S0ILe0usgOqOxrQf7QjrOEr2/vRmnGCkugk3SwJxsDQC2SE1ydL5+Q3uSHTV0a8229Ocfr Cpz4ObkEWw21bRe1EnsajiY572xbIMW+k0fX35vcpJgNFNZMRJmHxggVj8Ufi7jVUiE8M7 ljN5Z2tpOSjnNNWtWDRRVN1YsGxhZGltxuQDUgTqFxTowERaGKHS+kkgzylxVoQ7OIDYae dB37phOWcJ4z7knGICKfrB2PIpVupRNJ0kcGPhzTgFrBI26o0V70p7aYMVygbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727800765; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WEobkHkr/bFlYhJHRlLegdBzX+BRQqraKlSKuan0Ebs=; b=nQ6xHpYKtCQiwEiq6C7GxB293AtWuNSZ9tNf34rq5ihWvrNOLofoTGqcjTjTZ4hep35q0O T1OCpyAHBLPn8K+MnwqvPoaFyK/BaqWQyAD8w5IKfM5OgwE6YI4tviL2jrwwKBa7K0UpGC 8SoU8gVfu7D2In5nmUicqXBni2bvurCBe4TdbvzN95HksLgIoXypZ57POV+ovuiynljiKf LD5H4iYLwxmiEp4M/cBUfOzc/6X6ipo9zuF8XLkIQpJx/YtNH9Po/Ack6uL31bBi+F2khp 9Wifhk+Dqcymqy8KiIUSUg+aqKNlS57HvOP5PyjqMk3AhVyCZ5nImwFK837OrQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727800765; a=rsa-sha256; cv=none; b=K1hqWJa7pma0TzmBTBjQQ/qf4F+bih2FrDardLrJKLsdZv4C4CM6g1Tg8WC/ATvLsusdBA JYpwcQ5D3YxEStQwh9QcujvPIyYfd17TbWKJIiQtqXVE5/cGzZqyZsiC6AfKPOJg93ArRk 7xfLi/Ex4rWYADCZy7Y57E3FggvPEFdAIP4j5YIgHD1Ej1eEAnqj1CSuBoRDtj2TajXUjE DIymJo5E+2D6r/k9cbYS1N5peqfEkQVl/wMeBir4PfjatgX0fbAQDRBCjsGiSISQGKkvlP p6ZLGohrrCDMkse70z4SClkiq2Q9xADO21zmvLjiAKD+gl6CgV3hL4+NJrcvQQ== Received: from [10.9.4.95] (unknown [209.182.120.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: kevans/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XJ3Yn1454z18R0; Tue, 1 Oct 2024 16:39:25 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Message-ID: Date: Tue, 1 Oct 2024 11:39:23 -0500 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 User-Agent: Mozilla Thunderbird Subject: Re: weekly locate error Was: September 2024 stabilization week To: "Rodney W. Grimes" Cc: Jamie Landeg-Jones , freebsd-current@FreeBSD.org References: <202410011629.491GTQMf000804@gndrsh.dnsmgr.net> Content-Language: en-US From: Kyle Evans In-Reply-To: <202410011629.491GTQMf000804@gndrsh.dnsmgr.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 10/1/24 11:29, Rodney W. Grimes wrote: >> On 9/30/24 19:36, Jamie Landeg-Jones wrote: >>> Kyle Evans wrote: >>> >>>> It might be that the better long-term approach is to teach updatedb.sh >>>> how to drop privileges and push that out of the periodic script to avoid >>>> surprises like this from the different execution environments. This >>>> /feels/ like the kind of thing we could take an opinionated stance on, >>>> maybe providing an escape hatch of some sort if someone really wants to >>>> complain that they can't document all filenames on the system. >>> >>> This is how it already works. It calls locate.updatedb as "nobody", so >>> only files readable by "nobody" are indexed: >>> >>> echo /usr/libexec/locate.updatedb | nice -n 5 su -fm nobody || rc=3 >> >> 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. > > If you do this please make it possible to run it WITHOUT dropping > privledge, some of actually run locate.updatedb with full access > to file systems to produce more complete locate databases where > this information is not considered private. > >> Thanks, >> Kyle Evans This is the problem I have with mailing lists; 2/3 responses didn't go back and read the critical bit of context to my stance (but at least you still included it in your quote, the other one trimmed it entirely): > [...] surprises like this from the different execution environments. > This /feels/ like the kind of thing we could take an opinionated > stance on, maybe providing an escape hatch of some sort if someone > really wants to complain that they can't document all filenames on > the system. I don't disagree that there are probably valid cases, this is a proposal of a possible change, not a change itself. Admittedly I didn't see it as likely as it apparently is, but it's not like I completely ignored the possibility. Thanks, Kyle Evans