cvs commit: src/sys/kern imgact_elf.c

Maxim Sobolev sobomax at
Mon Dec 26 03:17:48 PST 2005


IMHO this approach is suboptimal, since it depends on user's ability to 
debug reason of failure of each particular script. I think since target 
platform allows execution of shared libs by default our emulation layer 
should do the same without requiring user to set some obscure sysctls first.

I have prepared a patch to remove that sysctl and make such behaviour 
default for linux ELF shared libs. Patch can be found here:

If there are no objections I would like to commit it (also removing 
respective linux.4 delta).




Olivier Houchard wrote:
> cognet      2005-11-14 22:24:00 UTC
>   FreeBSD src repository
>   Modified files:
>     sys/kern             imgact_elf.c 
>   Log:
>   Add a new sysctl, kern.elf[32|64].can_exec_dyn. When set to 1, one can
>   execute a ET_DYN binary (shared object).
>   This does not make much sense, but some linux scripts expect to be able to
>   execute /lib/ (ldd comes to mind).
>   The sysctl defaults to 0.
>   MFC after:      3 days
>   Revision  Changes    Path
>   1.166     +7 -1      src/sys/kern/imgact_elf.c

More information about the cvs-src mailing list