tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: $ORIGIN



On Sat, Jan 25, 2014 at 03:35:55PM +0000, Christos Zoulas wrote:
> >
> >Which seems to me to mean that we can (with only a bit of fuss) find
> >this flag during exec and do the (somewhat) expensive extra lookups
> >for supporting $ORIGIN only if it's found.
> >
> >Am I missing something?
> 
> The problem is that we don't have a reliable name -> inode mapping. It mostly
> does not have to do with performance.

ISTM that the kernel should hold a reference to the $ORIGIN vnode for
such processes.

Then the loader 'just' needs to be able to reference it in open().
I can't remember if the openeat() syscall has some useable flag bits.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index