SysFera / vishnu

Modular and high-level middleware for tasks, files and information management in heterogeneous and distributed HPC environments
http://sysfera.github.com/vishnu.html
Other
4 stars 12 forks source link

session: ensure that sessions files have permissions 600 #395

Closed hguemar closed 10 years ago

hguemar commented 10 years ago

A malicious user could use other users session files since their permissions were 644 by default bugfix #336

rchakode commented 10 years ago

the test works, but indeed, as Kevin said, what is the reason of removing ofile.close();

hguemar commented 10 years ago

It's useless since std::ofstream destructor will automatically close the file (RAII), besides note the block to make sure that it's indeed closed when we call chmod.

keoo commented 10 years ago

Integrated