find: Security Considerations for locate

 
 11.4 Security Considerations for 'locate'
 =========================================
 
 11.4.1 Race Conditions
 ----------------------
 
 It is fairly unusual for the output of 'locate' to be fed into another
 command.  However, if this were to be done, this would raise the same
 set of security issues as the use of 'find ... -print'.  Although the
 problems relating to whitespace in file names can be resolved by using
 'locate''s '-0' option, this still leaves the race condition problems
 associated with 'find ... -print0'.  There is no way to avoid these
 problems in the case of 'locate'.