HomeFreeBSD

MFC jaildesc: replace EBADF with EINVAL

Description

MFC jaildesc: replace EBADF with EINVAL

Following fd9e09cb, EBADF is not the suitable error code for a non-
jail descriptor passed to jail_set, jail_get, jail_attach_fd, and
jail_remove_fd.

Reported by: kib

(cherry picked from commit 16f600dc30b7bb82429660e540da802a1e3f7449)

Details

Provenance
jamieAuthored on Sep 9 2025, 6:13 PM
Parents
rG4ecbb3f19b44: MFC jaildesc: fix a misplaced error check and a spurious finit call
Branches
Unknown
Tags
Unknown