Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > muc.lists.netbsd.tech.userlevel > #11975
| From | Taylor R Campbell <riastradh@NetBSD.org> |
|---|---|
| Newsgroups | muc.lists.netbsd.tech.userlevel |
| Subject | Re: Proposal: getexecpath(3) |
| Date | 2026-10-26 12:17 +0000 |
| Organization | Newsgate at muc.de e.V. |
| Message-ID | <20261026121701.83CF784D39@mail.netbsd.org> (permalink) |
| References | <202610261104.HAA21730@Stone.Rodents-Montreal.ORG> |
> Date: Mon, 26 Oct 2026 07:04:08 -0400 (EDT) > From: Mouse <mouse@Rodents-Montreal.ORG> > > > 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. If the path resolution may have concurrently changed between the execve call and the realpath call, it may as well have concurrently changed between the execve call and the open call. In other words, this race condition is inherent to the nature of passing a path around; it cannot be avoided by asking the kernel to do (the equivalent of) realpath. -- 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