[PATCH v2] man2/shmget2: Add details about EPERM error

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

 



hugetlb_shm_group contains group id that is allowed to create SysV shared
memory segment using hugetlb page. To meet EPERM error, we also
need to make group id be not in this proc file.

Signed-off-by: Yang Xu <xuyang2018.jy@xxxxxxxxxxx>
---
 man2/shmget.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man2/shmget.2 b/man2/shmget.2
index 757b7b7f1..29799b9b8 100644
--- a/man2/shmget.2
+++ b/man2/shmget.2
@@ -273,7 +273,7 @@ The
 .B SHM_HUGETLB
 flag was specified, but the caller was not privileged (did not have the
 .B CAP_IPC_LOCK
-capability).
+capability and group id doesn't be contained in hugetlb_shm_group proc file).
 .SH CONFORMING TO
 POSIX.1-2001, POSIX.1-2008, SVr4.
 .\" SVr4 documents an additional error condition EEXIST.
-- 
2.23.0




[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