openat2.2: Minor tweaks to RESOLVE_IN_ROOT text

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-03-30 21:41:47 +02:00
parent 75cd77e3c1
commit 9e0168b018
1 changed files with 2 additions and 3 deletions

View File

@ -275,7 +275,7 @@ the caller should explicitly specify
.BR RESOLVE_NO_MAGICLINKS .
.TP
.B RESOLVE_IN_ROOT
Treat
Treat the directory referred to by
.I dirfd
as the root directory while resolving
.IR pathname .
@ -295,8 +295,7 @@ However, unlike
.BR chroot (2)
(which changes the filesystem root permanently for a process),
.B RESOLVE_IN_ROOT
allows a program to efficiently restrict path resolution for selected
open operations.
allows a program to efficiently restrict path resolution on a per-open basis.
.\" FIXME The next piece is unclear (to me). What kind of ".." escape
.\" attempts does chroot() not detecct that RESOLVE_IN_ROOT does?
The