]> khamidou — GitHub mirrors - arcanist.git/commit
Verify that ~/.arcrc is 600 before reading from it
authorepriestley <git@epriestley.com>
Sun, 26 Jun 2011 18:09:13 +0000 (11:09 -0700)
committerepriestley <git@epriestley.com>
Sun, 26 Jun 2011 18:55:31 +0000 (11:55 -0700)
commit182e2604720758cf67726543ed45f906cd845ed9
tree2a3a2f251772145199ab78eef8d0b8707de243ff
parent18e34d06bcb589127c9db621a41a20a319fb65ba
Verify that ~/.arcrc is 600 before reading from it

Summary:
Since this has auth information in it now, we should prevent other users on the
system from reading it. Detect readable files and prompt the user to fix them.

Test Plan:
Did "o+r" on my ~/.arcrc, ran "arc list", got prompted, hit "Y", verified it set
perms to 600, ran "arc list" again and wasn't prompted.

Reviewed By: jungejason
Reviewers: fratrik, jungejason, aran, tuomaspelkonen
CC: aran, jungejason, epriestley
Differential Revision: 532
src/workflow/base/ArcanistBaseWorkflow.php