LINUX.ORG.RU

access() && open() == security hole???


0

0

Этот текст получен по команде "man 2 access" (находится почти в конце файла):

Using access to check if a user is authorized to e.g. open
a file before actually doing so using open(2) creates a
security hole, because the user might exploit the short
time interval between checking and opening the file to
manipulate it.

Кто-нибудь может популярно объяснить, каким образом юзер "might exploit" интервал времени между системными вызовами

access("filename", R_OK);
open("filename", flags);

чтобы получилась "security hole"?

★★

Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.