]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bectl(8): Add a test for jail/unjail of numeric BE names
authorkevans <kevans@FreeBSD.org>
Fri, 24 May 2019 01:53:45 +0000 (01:53 +0000)
committerkevans <kevans@FreeBSD.org>
Fri, 24 May 2019 01:53:45 +0000 (01:53 +0000)
commitd94fd14e873c8193a07aebdbcb7b222fad7672ca
treef33bffae5611b14dabb14868463de3bbbe99c73d
parent991a69061e36c0a724afd47833c8f9a7b03689f4
bectl(8): Add a test for jail/unjail of numeric BE names

Fixed by r348215, bectl ujail first attempts the trivial fetch of a jid by
passing the first argument to 'ujail' to jail_getid(3) in case a jid/name
have been passed in instead of a BE name. For numerically named BEs, this
was doing the wrong thing: instead of failing to locate the jid specified
and falling back to mountpath search, jail_getid(3) would return the input
as-is.

While here, I've fixed bectl_jail_cleanup which still used a hard-coded pool
name that was overlooked w.r.t. other work that was in-flight around the
same time.

MFC after: 3 days
sbin/bectl/tests/bectl_test.sh