]> git.ipfire.org Git - thirdparty/man-pages.git/commit
seteuid.2: glibc implements seteuid() calling setresuid(), not setreuid()
authorŠtěpán Němec <stepnem@smrk.net>
Wed, 7 Feb 2024 20:13:36 +0000 (21:13 +0100)
committerAlejandro Colomar <alx@kernel.org>
Sun, 11 Feb 2024 18:51:48 +0000 (19:51 +0100)
commit2427b384fdf11feb19e8b882ff1870fa00be2566
tree96c05c3f6981adde97f329b040162c0fc57fd473
parente44ab23aba6705859910dc77e7bdbeebec0c5cb4
seteuid.2: glibc implements seteuid() calling setresuid(), not setreuid()

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>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man2/seteuid.2