]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r348509: jail_getid(3): add special-case immediate return for jid 0
authorkevans <kevans@FreeBSD.org>
Mon, 3 Jun 2019 16:47:51 +0000 (16:47 +0000)
committerkevans <kevans@FreeBSD.org>
Mon, 3 Jun 2019 16:47:51 +0000 (16:47 +0000)
commitb3de223927216764b3981faf97c899622dc9ae0b
treeb43aff239785f53fc8d93cc6585ab71f06c6921a
parent38c430a8135d09d77bd59c253f8fb1f92dacd109
MFC r348509: jail_getid(3): add special-case immediate return for jid 0

As depicted in the comment: jid 0 always exists, but the lookup will fail as
it does not appear in the kernel's alljails list being a special jail. Some
callers will expect/rely on this, and we have no reason to lie because it
does always exist.

Approved by: re (gjb)
lib/libjail/jail_getid.c