Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Open target file with O_EXCL for smpi_copy_file.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 16 Dec 2020 17:55:30 +0000 (18:55 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 16 Dec 2020 21:13:38 +0000 (22:13 +0100)
commitc675b440b60e68cd6eab35764858cc1b4bb2cb5b
tree7c168eec7466516fb029c596254306292435e102
parentaf04e282e301efc9a573a5d514a4fed98c566e33
Open target file with O_EXCL for smpi_copy_file.

Rationale: target file may be in a publicly writable directory like /tmp and
subject to symlink attack.

Also unlink any previously existing file before calling open().
src/smpi/internals/smpi_global.cpp