Next | Classic Unix Security Problems | 4 |
How do programs get run?
Process A running as user U wants to run program B
A does fork, which clones process A into a parent and a child
The child scoops out its brain, replaces with B
The child is still running as user U
Exception: if file B has the setuid bit set
Then in step 3, the child is granted a new UID
It gets the UID of the owner of file B
Next | Copyright © 2005 M. J. Dominus |