chroot.2: document EPERM for shared pwd

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D60963
This commit is contained in:
Konstantin Belousov committed 2026-11-04 18:23:11 +02:00
1 parent e95e010fd0
commit aff8d265fa
1 file changed
+5
+5
View File
@@ -126,6 +126,11 @@ process has not enabled the
.Dv PROC_NO_NEW_PRIVS_CTL
.Xr procctl 2 .
.It Bq Er EPERM
The effective user ID is not the super-user and the
current/root directory state of the process is shared with
another process, see
.Xr rfork 2 .
.It Bq Er EPERM
One or more file descriptors are open directories and the
.Ql Va kern.chroot_allow_open_directories
sysctl is not set to permit this.