prelink should not mess with running executables

Sam Varshavchik mrsam at courier-mta.com
Tue Jul 17 11:01:23 UTC 2012


Andrew Haley writes:

> On 07/17/2012 12:38 AM, Sam Varshavchik wrote:
> > Jan Kratochvil writes:
> >
> >> On Sun, 15 Jul 2012 22:42:00 +0200, Sam Varshavchik wrote:
> >>> And I wouldn't be so presumptions as to state authoritatively what
> >>> is or is not a bug, in something whose purpose is not known to me.
> >>
> >> Non-existing /proc/self/exe file is a normal UNIX process state so a UNIX
> >
> > It is anything but "normal". The "normal" state of things is documented by
> > proc(5). As documented by that man page, rather plainly,
> > readlink("/proc/self/exe") gives you your own pathname.
>
> Yes, it's the pathname that started this process.  Yes, that pathname
> may point to file that no longer exists.  That's UNIX.

No, that's Linux with prelink installed.

Perhaps this might be a hard concept to wrap one's brain around, but there's  
a quite a bit of difference between "this is an exceptional event, and  
that's what happens when i does", versus "this is now a normal occurence  
that, with prelink installed, and can happen to any random executable, at  
any time."

Across the pond, I believe that there's a word to describe this: "rubbish".  
How presumptious of an executable binary, that's not world-writable, to  
expect that nobody's going to come around, suddenly, and delete it! What  
would those kids think of next…

>                                                       /  That's how it
> has always worked, and will always work.  Anyone programming in a UNIX
> environment has to cope with it.

Sure. And since gruesome car wrecks are a normal, everyday occurence,  
there's no reason to do anything to davoid them. That's how they always  
work, and anyone will just have to deal with the aftermath, without  
bothering to take any steps to avoid the situation in the first place, right?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20120717/79311516/attachment.sig>


More information about the devel mailing list