Signon DB: file permissions and ownership 9
authorAlberto Mardegan <alberto.mardegan@nokia.com>
Wed, 18 May 2011 08:13:11 +0000 (11:13 +0300)
committerAlberto Mardegan <alberto.mardegan@nokia.com>
Wed, 18 May 2011 08:16:55 +0000 (11:16 +0300)
commit16cece797a9fee0b752297dd92a732bec4369521
treeee373067443af79bd566729100f223d3c1ab28f0
parenta84e4b357f34c20592213efef1a8db6875fd4989
Signon DB: file permissions and ownership

Let the DB files be owned by the user running signond (currently that is root,
in Harmattan), and set an appropriate umask at startup so that other users
cannot read our files.
When creating files for backup, though, change their ownership to the current
user, so that the backup application can read them.
src/signond/credentialsaccessmanager.cpp
src/signond/cryptohandlers.cpp
src/signond/misc.cpp
src/signond/misc.h
src/signond/signondaemon.cpp