Linux Manual Pages development
 help / color / mirror / Atom feed
* PR_SET_NO_NEW_PRIVS still in need of three trailing 0L arguments?
@ 2026-10-27  4:32 Aaron Rainbolt
  2026-10-27 10:59 ` Alejandro Colomar
  0 siblings, 1 reply; 2+ messages in thread
From: Aaron Rainbolt @ 2026-10-27  4:32 UTC (permalink / raw)
  To: alx+linux-man; +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 930 bytes --]

At one point, prctl always required five arguments. At some point
thereafter, it became a variadic function. Some of the PR_*(2const) man
pages recognize it as a variadic function, such as
PR_SET_DUMPABLE(2const), which states that you can use something like
`prctl(PR_SET_DUMPABLE, 1L);` without problems. On the other hand,
PR_SET_NO_NEW_PRIVS(2const) documents the only allowable method of use
as `prctl(PR_SET_NO_NEW_PRIVS, 1L, 0L, 0L, 0L);`, which looks like the
non-variadic form is still being assumed.

Is there some historical reason that three trailing 0L arguments must
or at least should be passed? Or is the manpage simply out of date? I'd
be happy to send patches for this and other prctl functions that are
mistakenly non-variadic if there is a need to. If there is a historical
reason to pass three trailing 0L arguments, maybe that reason could be
documented.

Thanks for your time,

--
Aaron

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

end of thread, other threads:[~2026-10-27 10:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-27  4:32 PR_SET_NO_NEW_PRIVS still in need of three trailing 0L arguments? Aaron Rainbolt
2026-10-27 10:59 ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox