From 9c0b66ebde490e5c965e22b35d0f23032dfbe48f Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 3 Feb 2015 14:33:35 +0100 Subject: [PATCH] madvise.2: ERRORS: add EPERM error case for MADV_HWPOISON Signed-off-by: Michael Kerrisk --- man2/madvise.2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/man2/madvise.2 b/man2/madvise.2 index dbe1deca1..397af68e7 100644 --- a/man2/madvise.2 +++ b/man2/madvise.2 @@ -380,6 +380,14 @@ Not enough memory: paging in failed. .B ENOMEM Addresses in the specified range are not currently mapped, or are outside the address space of the process. +.TP +.B EPERM +.I advice +is +.BR MADV_HWPOISON , +but the caller does not have the +.B CAP_SYS_ADMIN +capability. .SH VERSIONS Since Linux 3.18, .\" commit d3ac21cacc24790eb45d735769f35753f5b56ceb