Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Nov 2018 03:07:19 +0700
From:      Eugene Grosbein <eugen@freebsd.org>
To:        James Gritton <jamie@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org
Subject:   Re: svn commit: r340319 - head/usr.sbin/jail
Message-ID:  <b282dad6-a839-bdc5-e593-e8e8250d8abe@freebsd.org>
In-Reply-To: <116562006a741fa51ae63d8e9a94419d@freebsd.org>
References:  <201811101203.wAAC3vov082259@repo.freebsd.org> <871CB649-7A64-490B-A81E-F68A575A8BA4@lists.zabbadoz.net> <357a85c0-6552-080f-183c-a1d0d331cfe7@freebsd.org> <116562006a741fa51ae63d8e9a94419d@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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}')




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b282dad6-a839-bdc5-e593-e8e8250d8abe>