Skip to content

Fix setuid(2) not also setting the effective UID

samis requested to merge samuel.hodgkins/sortix:patch-1 into master

setuid(2) did not set the effective UID in addition to the real one. This was noticed when a program falsely claimed to be running as root. Looking at the source and creating a simple test program revealed the bug.

Edited by Jonas Termansen

Merge request reports