Re: [gentoo-user] links that behave differently per calling app?

2019-11-12 Thread Grant Taylor
On 11/10/19 9:37 PM, Caveman Al Toraboran wrote: hi - is it possible to have some kind of fancy links that know the name of the process that is trying to access it, and based on its name, it links it to a file? I've not heard of that specifically. e.g. `ln -s X Y` will create link Y that

Re: [gentoo-user] links that behave differently per calling app?

2019-11-12 Thread Rich Freeman
On Sun, Nov 10, 2019 at 11:37 PM Caveman Al Toraboran wrote: > > i think if we have this, we can solve slotting in a simpler > way. e.g. we install libs in their own non-conflicting > locations, and then install for them such fancy sym links > with access that routes accessing processes to the

Re: [gentoo-user] links that behave differently per calling app?

2019-11-12 Thread Poison BL.
On Sun, Nov 10, 2019 at 11:37 PM Caveman Al Toraboran wrote: > > hi - is it possible to have some kind of fancy links that > know the name of the process that is trying to access > it, and based on its name, it links it to a file? Yes, and that's used pretty extensively in busybox. Symlinks

Re: [gentoo-user] links that behave differently per calling app?

2019-11-12 Thread rudi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Would this be a case for "ps"? If you would like to know the PID of the process that calls your script you could execute "ps -o comm= $PPID" https://pubs.opengroup.org/onlinepubs/009604499/utilities/ps.html Rudi November 11, 2019 5:34 PM,

Re: [gentoo-user] links that behave differently per calling app?

2019-11-11 Thread Jack
On 11/11/19 12:38 PM, Walter Dnes wrote: On Mon, Nov 11, 2019 at 04:37:17AM +, Caveman Al Toraboran wrote hi - is it possible to have some kind of fancy links that know the name of the process that is trying to access it, and based on its name, it links it to a file? Short answer...

Re: [gentoo-user] links that behave differently per calling app?

2019-11-11 Thread Walter Dnes
On Mon, Nov 11, 2019 at 04:37:17AM +, Caveman Al Toraboran wrote > hi - is it possible to have some kind of fancy links that > know the name of the process that is trying to access > it, and based on its name, it links it to a file? Short answer... YES! Now convince the developers to use

Re: [gentoo-user] links that behave differently per calling app?

2019-11-11 Thread Peter Humphrey
On Monday, 11 November 2019 04:37:17 GMT Caveman Al Toraboran wrote: > hi - is it possible to have some kind of fancy links that > know the name of the process that is trying to access > it, and based on its name, it links it to a file? Yes, it's done all the time. Have a look at, e.g.,

[gentoo-user] links that behave differently per calling app?

2019-11-10 Thread Caveman Al Toraboran
hi - is it possible to have some kind of fancy links that know the name of the process that is trying to access it, and based on its name, it links it to a file? e.g. `ln -s X Y` will create link Y that always refers to X whenever anyone tries to access Y. but is it possible to have a fancier