[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.

Paul.
--

> 
> Cheers,
> 
> Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#1660): 
https://lists.openembedded.org/g/openembedded-architecture/message/1660
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]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to