* [PATCH] man2/shmget.2: Remove unexisted EPERM error
@ 2021-05-12 3:06 Yang Xu
2021-05-12 10:22 ` xuyang2018.jy
0 siblings, 1 reply; 2+ messages in thread
From: Yang Xu @ 2021-05-12 3:06 UTC (permalink / raw)
To: linux-man; +Cc: Yang Xu
I have seen kernel ipc/shm.c code, I don't see shmget has EPERM error
when using SHM_HUGETLB. So remove it.
Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
man2/shmget.2 | 7 -------
1 file changed, 7 deletions(-)
diff --git a/man2/shmget.2 b/man2/shmget.2
index 757b7b7f1..f10ba7a1f 100644
--- a/man2/shmget.2
+++ b/man2/shmget.2
@@ -267,13 +267,6 @@ or allocating a segment of the requested
.I size
would cause the system to exceed the system-wide limit on shared memory
.RB ( SHMALL ).
-.TP
-.B EPERM
-The
-.B SHM_HUGETLB
-flag was specified, but the caller was not privileged (did not have the
-.B CAP_IPC_LOCK
-capability).
.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] 2+ messages in thread
* Re: [PATCH] man2/shmget.2: Remove unexisted EPERM error
2021-05-12 3:06 [PATCH] man2/shmget.2: Remove unexisted EPERM error Yang Xu
@ 2021-05-12 10:22 ` xuyang2018.jy
0 siblings, 0 replies; 2+ messages in thread
From: xuyang2018.jy @ 2021-05-12 10:22 UTC (permalink / raw)
To: linux-man@vger.kernel.org
Sorry for noise. I will send a v2 patch and add details about
hugetlb_shm_group value.
> I have seen kernel ipc/shm.c code, I don't see shmget has EPERM error
> when using SHM_HUGETLB. So remove it.
>
> Signed-off-by: Yang Xu<xuyang2018.jy@fujitsu.com>
> ---
> man2/shmget.2 | 7 -------
> 1 file changed, 7 deletions(-)
>
> diff --git a/man2/shmget.2 b/man2/shmget.2
> index 757b7b7f1..f10ba7a1f 100644
> --- a/man2/shmget.2
> +++ b/man2/shmget.2
> @@ -267,13 +267,6 @@ or allocating a segment of the requested
> .I size
> would cause the system to exceed the system-wide limit on shared memory
> .RB ( SHMALL ).
> -.TP
> -.B EPERM
> -The
> -.B SHM_HUGETLB
> -flag was specified, but the caller was not privileged (did not have the
> -.B CAP_IPC_LOCK
> -capability).
> .SH CONFORMING TO
> POSIX.1-2001, POSIX.1-2008, SVr4.
> .\" SVr4 documents an additional error condition EEXIST.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-12 10:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-12 3:06 [PATCH] man2/shmget.2: Remove unexisted EPERM error Yang Xu
2021-05-12 10:22 ` xuyang2018.jy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.