All of lore.kernel.org
 help / color / mirror / Atom feed
From: "xuyang2018.jy@fujitsu.com" <xuyang2018.jy@fujitsu.com>
To: "linux-man@vger.kernel.org" <linux-man@vger.kernel.org>
Subject: Re: [PATCH] man2/shmget.2: Remove unexisted EPERM error
Date: Wed, 12 May 2021 10:22:56 +0000	[thread overview]
Message-ID: <609BAC9E.60005@fujitsu.com> (raw)
In-Reply-To: <1620788812-2361-1-git-send-email-xuyang2018.jy@fujitsu.com>

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.

      reply	other threads:[~2021-05-12 10:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-12  3:06 [PATCH] man2/shmget.2: Remove unexisted EPERM error Yang Xu
2021-05-12 10:22 ` xuyang2018.jy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=609BAC9E.60005@fujitsu.com \
    --to=xuyang2018.jy@fujitsu.com \
    --cc=linux-man@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.