HomeFreeBSD

linux: add sysctl compat.linux.use_emul_path

Description

linux: add sysctl compat.linux.use_emul_path

This is a step towards facilitating jails with only Linux binaries.
Supporting emul_path adds path lookups which are completely spurious
if the binary at hand runs in a Linux-based root directory.

It defaults to on (== current behavior).

make -C /root/linux-5.3-rc8 -s -j 1 bzImage:

use_emul_path=1: 101.65s user 68.68s system 100% cpu 2:49.62 total
use_emul_path=0: 101.41s user 64.32s system 100% cpu 2:45.02 total

Details

Provenance
mjgAuthored on Aug 18 2020, 10:04 PM
Parents
rGd5e3895ea4fe: linux: consistently use LFREEPATH instead of open-coding it
Branches
Unknown
Tags
Unknown