summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorstevek <stevek@FreeBSD.org>2017-05-25 18:55:10 +0000
committerstevek <stevek@FreeBSD.org>2017-05-25 18:55:10 +0000
commit0b9c0fec18dc1072e9a62905cee72eaca5992c10 (patch)
treeaeb8ad5c6738b54e5abf0347fd6ed089f1643638 /lib
parent61ad262512e302f69f713f8f13a6fff42dd917c7 (diff)
downloadFreeBSD-src-0b9c0fec18dc1072e9a62905cee72eaca5992c10.zip
FreeBSD-src-0b9c0fec18dc1072e9a62905cee72eaca5992c10.tar.gz
MFC r318314
Add information to open(2) man page about the O_VERIFY flag. PR: 219262 Reviewed by: bjk wblock Approved by: sjg (mentor) Obtained from: Juniper Networks, Inc.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/open.210
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2
index 1dbc493..c7ac38a 100644
--- a/lib/libc/sys/open.2
+++ b/lib/libc/sys/open.2
@@ -119,6 +119,7 @@ O_NOCTTY ignored
O_TTY_INIT ignored
O_DIRECTORY error if file is not a directory
O_CLOEXEC set FD_CLOEXEC upon open
+O_VERIFY verify the contents of the file
.Ed
.Pp
Opening a file with
@@ -237,6 +238,15 @@ may be used to set
.Dv FD_CLOEXEC
flag for the newly returned file descriptor.
.Pp
+.Dv O_VERIFY
+may be used to indicate to the kernel that the contents of the file should
+be verified before allowing the open to proceed.
+The details of what
+.Dq verified
+means is implementation specific.
+The run-time linker (rtld) uses this flag to ensure shared objects have
+been verified before operating on them.
+.Pp
If successful,
.Fn open
returns a non-negative integer, termed a file descriptor.
OpenPOWER on IntegriCloud