Le 13/09/2017 à 22:00, Christos Zoulas a écrit :
Can't we add a sysctl that controls the behavior and have autoload of the compat modules off by default?
Well, let's just do this. I've written (and tested) [1] - it works. A new leaf is added in emul.linux, emul.linux.enabled={0,1}, which registers linux_execsw. Obviously, after applying this patch we'll have to remove compat_linux from the autoload array. And the same will have to be done in compat_linux32. Ok? Maxime [1] http://m00nbsd.net/garbage/module/sysctl.diff