Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > muc.lists.netbsd.tech.userlevel > #11974
| From | Mouse <mouse@Rodents-Montreal.ORG> |
|---|---|
| Newsgroups | muc.lists.netbsd.tech.userlevel |
| Subject | Re: Proposal: getexecpath(3) |
| Date | 2026-10-26 07:04 -0400 |
| Organization | Newsgate at muc.de e.V. |
| Message-ID | <202610261104.HAA21730@Stone.Rodents-Montreal.ORG> (permalink) |
| References | <20261026072940.AC5DF84D2D@mail.netbsd.org> |
> 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
Back to muc.lists.netbsd.tech.userlevel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Proposal: getexecpath(3) Brad Smith <brad@comstyle.com> - 2026-10-25 04:20 -0400
Re: Proposal: getexecpath(3) Taylor R Campbell <riastradh@NetBSD.org> - 2026-10-26 07:29 +0000
Re: Proposal: getexecpath(3) Mouse <mouse@Rodents-Montreal.ORG> - 2026-10-26 07:04 -0400
Re: Proposal: getexecpath(3) Taylor R Campbell <riastradh@NetBSD.org> - 2026-10-26 12:17 +0000
Re: Proposal: getexecpath(3) Mouse <mouse@Rodents-Montreal.ORG> - 2026-10-26 19:12 -0400
Re: Proposal: getexecpath(3) Jason Thorpe <thorpej@me.com> - 2026-10-27 08:59 -0400
Re: Proposal: getexecpath(3) David Holland <dholland-tech@netbsd.org> - 2026-11-01 19:34 +0000
csiph-web