Skip to content

Fix file permissions#470

Merged
HelloZeroNet merged 2 commits intoHelloZeroNet:masterfrom
Emeraude:fix-file-permissions
May 27, 2016
Merged

Fix file permissions#470
HelloZeroNet merged 2 commits intoHelloZeroNet:masterfrom
Emeraude:fix-file-permissions

Conversation

@Emeraude
Copy link
Copy Markdown

I noticed that the files data/users.json and data/sites.json have the permissions 644 which means everybody can read them, even if they contain private keys. So I changed these files' permissions to 600 to ensure that only their owner can read them (as ssh does for its private keys).
I also modified the function atomicWrite so that the file permissions are preserved (they were reset to 644 each time).

Thibaut Broggi added 2 commits May 26, 2016 15:59
    Files users.json and sites.json contains private key
    Only the owner of these files should have access to them
@codecov-io
Copy link
Copy Markdown

Current coverage is 48.46%

Merging #470 into master will increase coverage by 0.08%

@@             master       #470   diff @@
==========================================
  Files            55         55          
  Lines          6573       6579     +6   
  Methods           0          0          
  Messages          0          0          
  Branches       1385       1379     -6   
==========================================
+ Hits           3177       3188    +11   
  Misses         2993       2993          
+ Partials        403        398     -5   

Powered by Codecov. Last updated by 81f1966...9e9832a

@HelloZeroNet HelloZeroNet merged commit 523a7d4 into HelloZeroNet:master May 27, 2016
@HelloZeroNet
Copy link
Copy Markdown
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants