summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2020-04-25 13:23:02 +0000
committerBob Beck <beck@cvs.openbsd.org>2020-04-25 13:23:02 +0000
commitf1ad4faaffeaadf1171b5f0830e1ef17b316d34f (patch)
treecb5e0f73fafe7531f2401a28d73d9c751fb50c4d
parentbf66b0917ca5f47d1a8dba54ed7b86d9a716e09a (diff)
Clairify the point at which unveil first makes restricitons on the
filesystem, and remove the BUGS section, as this was fixed by making realpath() a system call. ok ingo@ deraadt@
-rw-r--r--lib/libc/sys/unveil.213
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/libc/sys/unveil.2 b/lib/libc/sys/unveil.2
index 28240cae74e..ec01fe4b5c0 100644
--- a/lib/libc/sys/unveil.2
+++ b/lib/libc/sys/unveil.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: unveil.2,v 1.20 2019/12/06 00:14:08 schwarze Exp $
+.\" $OpenBSD: unveil.2,v 1.21 2020/04/25 13:23:01 beck Exp $
.\"
.\" Copyright (c) 2018 Bob Beck <beck@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: December 6 2019 $
+.Dd $Mdocdate: April 25 2020 $
.Dt UNVEIL 2
.Os
.Sh NAME
@@ -27,6 +27,8 @@
.Sh DESCRIPTION
The first call to
.Fn unveil
+that specifies a
+.Fa path
removes visibility of the entire filesystem from all other
filesystem-related system calls (such as
.Xr open 2 ,
@@ -167,10 +169,3 @@ The
.Fn unveil
system call first appeared in
.Ox 6.4 .
-.Sh BUGS
-.Xr readlink 2
-partially bypasses
-.Fn unveil
-restrictions required by
-.Xr realpath 3 .
-Future changes intend to repair this problem.