Next: , Previous: Security Considerations for xargs, Up: Security Considerations



8.4 Security Considerations for locate

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 filenames 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.