Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Unified Diff: tools/telemetry/telemetry/core/platform/cros_interface.py

Issue 646103003: 400 permissions on testing_rsa file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/platform/cros_interface.py
diff --git a/tools/telemetry/telemetry/core/platform/cros_interface.py b/tools/telemetry/telemetry/core/platform/cros_interface.py
index a53afe3cfb3d6f29995ecb8abcf2ca3f09a6e3e7..504b9946c9bd7c2cd98afde39a908ef65109dedc 100644
--- a/tools/telemetry/telemetry/core/platform/cros_interface.py
+++ b/tools/telemetry/telemetry/core/platform/cros_interface.py
@@ -6,6 +6,7 @@ import logging
import re
import os
import shutil
+import stat
import subprocess
import tempfile
@@ -93,6 +94,7 @@ class CrOSInterface(object):
if ssh_identity:
self._ssh_identity = os.path.abspath(os.path.expanduser(ssh_identity))
+ os.chmod(self._ssh_identity, stat.S_IREAD)
ilja 2014/10/10 23:35:10 I think you want stat.S_IREAD | stat.S_IWRITE as y
achuithb 2014/10/10 23:47:30 I've changed the description to say 400. Doesn't s
# Establish master SSH connection using ControlPersist.
# Since only one test will be run on a remote host at a time,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698