Linux Manual Pages development
 help / color / mirror / Atom feed
From: Cesar Eduardo Barros <cesarb@cesarb.eti.br>
To: Alejandro Colomar <alx+linux-man@kernel.org>
Cc: Cesar Eduardo Barros <cesarb@cesarb.eti.br>, linux-man@vger.kernel.org
Subject: [PATCH v1 0/1] man/man2const/PR_SET_PTRACER.2const: Document EINVAL
Date: Sat, 21 Nov 2026 16:48:06 -0300	[thread overview]
Message-ID: <cover.1795289695.git.cesarb@cesarb.eti.br> (raw)
In-Reply-To: <au8GKjxzoGpp4MqU@debian>

The man page for PR_SET_PTRACER mentions three cases in which
prctl(PR_SET_PTRACER, ...) can fail with EINVAL, but there's a fourth
case: when CONFIG_SECURITY_YAMA=n

The code which deals with the three currently documented cases is at
security/yama/yama_lsm.c which is only compiled when "Yama support" is
configured.  When it isn't, it falls through to the default case at
kernel/sys.c which returns EINVAL.

Cesar Eduardo Barros (1):
  man/man2const/PR_SET_PTRACER.2const: Document EINVAL when Yama is not
    configured

 man/man2const/PR_SET_PTRACER.2const | 3 +++
 1 file changed, 3 insertions(+)

Range-diff em relação a v0:
-:  ------------ > 1:  cfc899195f8d man/man2const/PR_SET_PTRACER.2const: Document EINVAL when Yama is not configured
-- 
2.56.1


  reply	other threads:[~2026-11-21 19:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-07 10:26 PR_SET_PTRACER can also EINVAL when Yama is not configured Cesar Eduardo Barros
2026-11-07 11:06 ` Alejandro Colomar
2026-11-21 19:48   ` Cesar Eduardo Barros [this message]
2026-11-21 19:48     ` [PATCH v1 1/1] man/man2const/PR_SET_PTRACER.2const: Document " Cesar Eduardo Barros
2026-11-26 22:52       ` Alejandro Colomar
2026-11-26 23:02         ` Alejandro Colomar

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=cover.1795289695.git.cesarb@cesarb.eti.br \
    --to=cesarb@cesarb.eti.br \
    --cc=alx+linux-man@kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox