HomeFreeBSD

MFC r348509: jail_getid(3): add special-case immediate return for jid 0

Description

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)

Details

Provenance
kevansAuthored on
Parents
rS348537: 8601 memory leak in get_special_prop()
Branches
Unknown
Tags
Unknown