Improve the explanation on the (in)security of mktemp(3).
This commit is contained in:
parent
d59590d848
commit
71207448cf
@ -186,9 +186,12 @@ See
|
||||
.Xr gcc 1
|
||||
for more information.
|
||||
.Sh BUGS
|
||||
An attacker can guess the filenames produced by
|
||||
.Fn mktemp .
|
||||
Whenever it is possible
|
||||
This family of functions produces filenames which can be guessed.
|
||||
This makes the race in
|
||||
.Fn mktemp ,
|
||||
between testing for a file's existence and opening it for use,
|
||||
particularly dangerous from a security perspective.
|
||||
Whenever it is possible,
|
||||
.Fn mkstemp
|
||||
should be used instead.
|
||||
.Sh SEE ALSO
|
||||
|
Loading…
Reference in New Issue
Block a user