Time-of-check to time-of-use: Difference between revisions

Content deleted Content added
m Fix a page link
Line 16:
write(fd, buffer, sizeof(buffer));
</source>
Here, ''access'' is intended to check whether the real user who executed the setuid program would normally be allowed to readwrite the file (i.e., ''access'' checks the [[real userid]] rather than [[effective userid]]).
 
This race condition is vulnerable to an attack: