[PATCH] mmap.2: mmap with address NULL and MAP_FIXED results in EPERM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This can be verified with a simple test program. I'm not sure if this is
a kernel bug or a documentation bug, though...
---
 man2/mmap.2 | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/man2/mmap.2 b/man2/mmap.2
index d1942b52a..58361c837 100644
--- a/man2/mmap.2
+++ b/man2/mmap.2
@@ -515,6 +515,13 @@ was mounted no-exec.
 .\" (Since 2.4.25 / 2.6.0.)
 .TP
 .B EPERM
+The
+.I addr
+argument is 0 and
+.B MAP_FIXED
+is specified.
+.TP
+.B EPERM
 The operation was prevented by a file seal; see
 .BR fcntl (2).
 .TP
-- 
2.13.1

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux