aboutsummaryrefslogtreecommitdiff
path: root/lib/libsys/Makefile.sys
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2024-11-29 07:46:07 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2024-11-29 12:10:02 +0000
commitb165e9e3ea4e327fc421d81c2a89242bd8720780 (patch)
treecee64e3fcfa6d5fa66ab2399c0f80e19c02d64a5 /lib/libsys/Makefile.sys
parent347dd0539f3a75fdf2128dd4620ca99e96f311e9 (diff)
Add fchroot(2)
This is similar to chroot(2), but takes a file descriptor instead of path. Same syscall exists in NetBSD and Solaris. It is part of a larger patch to make absolute pathnames usable in Capsicum mode, but should be useful in other contexts too. Reviewed By: brooks Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D41564
Diffstat (limited to 'lib/libsys/Makefile.sys')
-rw-r--r--lib/libsys/Makefile.sys1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libsys/Makefile.sys b/lib/libsys/Makefile.sys
index 4be64a98bb96..04e767d50f86 100644
--- a/lib/libsys/Makefile.sys
+++ b/lib/libsys/Makefile.sys
@@ -399,6 +399,7 @@ MLINKS+=chmod.2 fchmod.2 \
MLINKS+=chown.2 fchown.2 \
chown.2 fchownat.2 \
chown.2 lchown.2
+MLINKS+=chroot.2 fchroot.2
MLINKS+=clock_gettime.2 clock_getres.2 \
clock_gettime.2 clock_settime.2
MLINKS+=closefrom.2 close_range.2