bitcoin/bitcoin — pull request #2430 by Aeyoun (2013-03-31 01:11:00+00:00)
Title: Tighten permissions of ~/.bitcoin/ to prevent unauthorized access

boost::filesystem::create_directory() defaults to allow all users full access to the Bitcoin DataDir. This directory should only be accessible to the owner to limit unauthorized access.

A future version can use boost::filesystem::permissions() (v1.49+) instead of dealing with the lower level chmod directly.