]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r348509: jail_getid(3): add special-case immediate return for jid 0
authorKyle Evans <kevans@FreeBSD.org>
Mon, 3 Jun 2019 15:28:37 +0000 (15:28 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Mon, 3 Jun 2019 15:28:37 +0000 (15:28 +0000)
commit8ddd7235fff1396db6ab3c6fc526b3efa9aa490d
tree73dc97c34c0f5780b9a0d8a4e03b7daf13727d33
parent91d59971270ea4461629e9ec859b09565a02103e
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 (early MFC)
lib/libjail/jail_getid.c