On Thu, 2022-11-03 at 10:20 -0400, Paul Gortmaker wrote: > [Relocatable binaries - better kernel support?] On 03/11/2022 (Thu 13:56) > Richard Purdie wrote: > > [...] > > > The code that handles the interpreter is in the kernel, in > > fs/binfmt_elf.c:load_elf_binary(). The idea would be to add support for > > $ORIGIN there so that $ORIGIN is replaced with the location of the > > binary. > > > > Does anyone have an idea if such a change might be acceptable to the > > upstream kernel? Has anyone ever proposed anything like that? > > All the "normal" rules apply. You'd need to demonstrate that there is a > significant user base out there that wants this, that it doesn't disrupt > any existing users, that it doesn't open the door for security issues > and root-kits, and finally that the change doesn't make you want to go > shower with steel wool and bleach after looking at the code.
That makes sense, I know we'd need to be careful about setuid (see my other email). If I can find a few minutes I guess I'll experiment a bit and see if I can come up with a patch to test the water with... Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1659): https://lists.openembedded.org/g/openembedded-architecture/message/1659 Mute This Topic: https://lists.openembedded.org/mt/94756656/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-architecture/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
