Article View: muc.lists.netbsd.tech.userlevel
Article #42Re: Proposal: getexecpath(3)
From: Mouse
Date: Mon, 26 Oct 2026 11:04
Date: Mon, 26 Oct 2026 11:04
25 lines
2427 bytes
2427 bytes
> Why do you want the kernel to compute some notion of a canonical > absolute path? Of what use is this for applications? Isn't this > strictly less useful than the original verbatim exec path? It also can leak information. If the path passed to execve is relative and one of the containing directories is inaccessible to the process, a kernel-created absolute path will leak a pathname the program shouldn't be able to obtain. > You can always pass the original verbatim exec path to realpath(3) if > you want to canonicalize it, True, though that - at best - returns the hard path at the time of realpath (or more precisely with pieces fetched at various times scattered throughout the execution of realpath), which may not be the same as the one at the time of exec. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTML mouse@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<202610261104.HAA21730@Stone.Rodents-Montreal.ORG>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<20261026072940.AC5DF84D2D@mail.netbsd.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Mouse <mouse@Rodents-Montreal.ORG> Newsgroups: muc.lists.netbsd.tech.userlevel Subject: Re: Proposal: getexecpath(3) Date: Mon, 26 Oct 2026 07:04:08 -0400 (EDT) Organization: Newsgate at muc.de e.V. Sender: tech-userlevel-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <202610261104.HAA21730@Stone.Rodents-Montreal.ORG> References: <20261026072940.AC5DF84D2D@mail.netbsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="26934"; mail-complaints-to="news-admin@muc.de" X-Erik-Conspiracy: There is no Conspiracy - and if there were I wouldn't be part of it anyway. X-Message-Flag: Microsoft: the company who gave us the botnet zombies. X-Composition-Start-Date: Mon, 26 Oct 2026 06:50:28 -0400 (EDT) In-Reply-To: <20261026072940.AC5DF84D2D@mail.netbsd.org> Precedence: bulk X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes