diff options
| author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2024-11-29 07:46:07 +0000 |
|---|---|---|
| committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2024-11-29 12:10:02 +0000 |
| commit | b165e9e3ea4e327fc421d81c2a89242bd8720780 (patch) | |
| tree | cee64e3fcfa6d5fa66ab2399c0f80e19c02d64a5 /sys/kern/syscalls.master | |
| parent | 347dd0539f3a75fdf2128dd4620ca99e96f311e9 (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 'sys/kern/syscalls.master')
| -rw-r--r-- | sys/kern/syscalls.master | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 2bbd20b5a5b0..e7f577d48426 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -3341,5 +3341,10 @@ _Out_ rlim_t *res ); } +590 AUE_NULL STD { + int fchroot( + int fd + ); + } ; vim: syntax=off |
