Bug 209706

Summary: imgact_binmisc.ko: add support for kern_alternate_path(9)
Product: Base System Reporter: Jan Beich <jbeich>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me CC: emaste, pi, sbruno
Priority: --- Keywords: feature, needs-patch
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Jan Beich freebsd_committer freebsd_triage 2016-05-23 05:52:41 UTC
To facilitate mixing foreign executables with native in scripts image activators need to support path translation similar to linuxulator. This would make dynamic ELF executables able to find rtld(1) for their ABI without chroot. Once implemented the path can configured via an optional argument to binmiscctl(8).

  $ /compat/linux/bin/date
  Mon May 22 22:17:47 UTC 2016

  $ /poudriere/jails/head-aarch64/bin/date
  Unable to load interpreter

vs.

  $ sudo chroot /poudriere/jails/head-aarch64 /bin/date
  Mon May 22 22:17:47 UTC 2016