linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] man2/shmget2: Add details about EPERM error
@ 2021-05-12 10:53 Yang Xu
  2021-05-17  3:49 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 4+ messages in thread
From: Yang Xu @ 2021-05-12 10:53 UTC (permalink / raw)
  To: linux-man; +Cc: Yang Xu

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@fujitsu.com>
---
 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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-07  2:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-12 10:53 [PATCH v2] man2/shmget2: Add details about EPERM error Yang Xu
2021-05-17  3:49 ` Michael Kerrisk (man-pages)
2021-05-17  4:41   ` xuyang2018.jy
2021-07-07  2:43     ` xuyang2018.jy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).