aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/link.2
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-02-16 03:31:40 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-03-02 18:16:55 +0000
commit20e91ca36a56b8db1e6677f577ad011b66dd6eb3 (patch)
treeaf58d0174ee9922bbf1901b660a7f68017688d20 /lib/libc/sys/link.2
parent600756afb532a86a39fb488f5c4fc7e248921655 (diff)
open(2): Remove O_BENEATH and AT_BENEATH
with the reasoning that the flags did not worked properly, and were not shipped in a release. O_RESOLVE_BENEATH is kept as useful. Reviewed by: markj Tested by: arichardson, pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D28907
Diffstat (limited to 'lib/libc/sys/link.2')
-rw-r--r--lib/libc/sys/link.228
1 files changed, 7 insertions, 21 deletions
diff --git a/lib/libc/sys/link.2 b/lib/libc/sys/link.2
index c3451da10884..de0efd5e510f 100644
--- a/lib/libc/sys/link.2
+++ b/lib/libc/sys/link.2
@@ -28,7 +28,7 @@
.\" @(#)link.2 8.3 (Berkeley) 1/12/94
.\" $FreeBSD$
.\"
-.Dd September 23, 2020
+.Dd February 23, 2021
.Dt LINK 2
.Os
.Sh NAME
@@ -115,15 +115,10 @@ If
.Fa name1
names a symbolic link, a new link for the target of the symbolic link is
created.
-.It Dv AT_BENEATH
-Only allow to link to a file which is beneath of the topping directory.
-See the description of the
-.Dv O_BENEATH
-flag in the
-.Xr open 2
-manual page.
.It Dv AT_RESOLVE_BENEATH
-Only walks paths below the topping directory.
+Only walk paths below the directory specified by the
+.Ar fd
+descriptor.
See the description of the
.Dv O_RESOLVE_BENEATH
flag in the
@@ -281,18 +276,9 @@ For example,
is absolute or includes a ".." component that escapes
the directory hierarchy specified by
.Fa fd ,
-and the process is in capability mode.
-.It Bq Er ENOTCAPABLE
-The
-.Dv AT_BENEATH
-flag was provided to
-.Fa linkat
-and the absolute path
-.Fa name1
-does not have its tail fully contained under the topping directory,
-or the relative path
-.Fa name1
-escapes it.
+and the process is in capability mode or the
+.Dv AT_RESOLVE_BENEATH
+flag was specified.
.El
.Sh SEE ALSO
.Xr chflags 2 ,