svn commit: r340319 - head/usr.sbin/jail

Eugene Grosbein eugen at freebsd.org
Sat Nov 10 20:07:36 UTC 2018


11.11.2018 2:10, James Gritton wrote:

>>> Usually also jls is the command which will give information (compared to actions) on jails, would that not fit there?
>>
>> jls(8) currently does not parse /etc/jail.conf and I'd like to avoid
>> code duplication
>> between jail(8) and jls(8).
> 
> It's probably time to work on combining the code base for those, and jexec(8) as well.
> There's been a desire to have jexec work with the jail's fib which is (currently) only in the config and not in the resulting jail itself.

Meantime, you can now use something like this:

fib=$(jail -e: | egrep '\<name=JAILNAME\>' | tr : $'\n' | awk -F= '$1=="exec.fib" {print $2}')



More information about the svn-src-all mailing list