Post #1805560
2026-04-30 11:31 UTC
@gwen@tech.lgbt @sitharus@cloudisland.nz yes setuid binaries are executed with the *effective* uid of the owner of the file. But the real user ID is lurking in the background. Different things check those two uids.
By calling the setuid syscall (which you can do with euid root) you can overwrite the real uid, and make real and euid both root (ie really the root user).
(I forget exactly which step is the problem check on the real uid, but running the setuid syscall is the expected conventional flow here.)
Replies (1)
-
@gwen@tech.lgbt 2026-04-30 11:43
@ewenmcneill @sitharus ohh thank you!