HomeFreeBSD

chroot.2: Update errors and unprivileged use

Description

chroot.2: Update errors and unprivileged use

Include errors common to chroot and fchroot in a single list, followed
by errors unique to each.

Unprivileged chroot is permitted if the security.bsd.unprivileged_chroot
sysctl is set to 1. Make note of this and update the EPERM description.

Reported by: kevans
Reviewed by: kevans, kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D51703

(cherry picked from commit 95f8c3e1ed0c3075411444381a5a4baef4ed8fda)

Details

Provenance
emasteAuthored on Aug 2 2025, 5:17 PM
Reviewer
kevans
Differential Revision
D51703: chroot.2: Update errors and unprivileged use
Parents
rGe425d433c5ad: Makefile.inc1: Avoid including cwd in path
Branches
Unknown
Tags
Unknown