public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] seteuid.2: glibc implements seteuid calling setresuid, not setreuid
@ 2024-02-07 20:13 Štěpán Němec
  2024-02-11 18:52 ` Alejandro Colomar
  0 siblings, 1 reply; 2+ messages in thread
From: Štěpán Němec @ 2024-02-07 20:13 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: linux-man

Analogously with set*gid.

This has been the case since more than two decades, e.g.:

  commit eae59a5681a6 glibc-2.3.2-793-geae59a5681a6
  Commit: Ulrich Drepper <drepper@redhat.com>
  CommitDate: Sun Jun 8 22:37:53 2003 +0000

  Update.

          * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
          syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
          defined drop compatibility code.
  [...]

The change in implementation from setreuid/setregid is also
already mentioned two paragraphs earlier in the same man page.

Fixes: a36b2bb0eca4 ("seteuid.2: seteuid() and setegid() are implemented as library functions")
Fixes: 8554dd0324b0 ("seteuid.2: tfix")
Signed-off-by: Štěpán Němec <stepnem@smrk.net>
---
 man2/seteuid.2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man2/seteuid.2 b/man2/seteuid.2
index 312ed1f9e002..0eae04f79fc9 100644
--- a/man2/seteuid.2
+++ b/man2/seteuid.2
@@ -117,9 +117,9 @@ .SS C library/kernel differences
 and
 .BR setegid ()
 are implemented as library functions that call, respectively,
-.BR setreuid (2)
+.BR setresuid (2)
 and
-.BR setregid (2).
+.BR setresgid (2).
 .SH STANDARDS
 POSIX.1-2008.
 .SH HISTORY

base-commit: 452f15569fc3cb1697b6482754dd51a56fcab970
prerequisite-patch-id: 79eb7cb4939079d7fa9f00007856784f30801886
-- 
2.43.0


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

end of thread, other threads:[~2024-02-11 18:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-07 20:13 [PATCH] seteuid.2: glibc implements seteuid calling setresuid, not setreuid Štěpán Němec
2024-02-11 18:52 ` Alejandro Colomar

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