filename = GetUntrustedFilename();
WriteToFile(filename, "Hello world");
The code intends to raise its privileges to root to access a special device, then drop the
privileges back to the original user ID. It then writes to a user-supplied filename, and