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

Issue 750093007: [Telemetry] Fix sudoers file parsing (Closed)

Created:
6 years ago by jeremy
Modified:
6 years ago
Reviewers:
Sami, Sami (do not use)
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Telemetry] Fix sudoers file parsing Fix the regex we use for parsing the sudoers file to allow arguments after the binary path. BUG=423688 Committed: https://crrev.com/fe5b98e23b5cfd2bce79edc7a92069fbbe3b9fe6 Cr-Commit-Position: refs/heads/master@{#306839}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix review comments #

Total comments: 1

Patch Set 3 : CL to land #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -10 lines) Patch
M tools/telemetry/telemetry/core/platform/posix_platform_backend.py View 1 2 2 chunks +19 lines, -10 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/posix_platform_backend_unittest.py View 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
jeremy
6 years ago (2014-12-04 15:49:08 UTC) #2
Sami
https://codereview.chromium.org/750093007/diff/1/tools/telemetry/telemetry/core/platform/posix_platform_backend.py File tools/telemetry/telemetry/core/platform/posix_platform_backend.py (right): https://codereview.chromium.org/750093007/diff/1/tools/telemetry/telemetry/core/platform/posix_platform_backend.py#newcode20 tools/telemetry/telemetry/core/platform/posix_platform_backend.py:20: if re.match(r'\s*\(.+\) NOPASSWD: %s(\s\S+)*$' % path, line): re.escape(path) would ...
6 years ago (2014-12-04 15:57:01 UTC) #4
Sami
Thanks for adding the test btw.
6 years ago (2014-12-04 15:57:26 UTC) #5
jeremy
All fixed, ready for another look. https://codereview.chromium.org/750093007/diff/1/tools/telemetry/telemetry/core/platform/posix_platform_backend.py File tools/telemetry/telemetry/core/platform/posix_platform_backend.py (right): https://codereview.chromium.org/750093007/diff/1/tools/telemetry/telemetry/core/platform/posix_platform_backend.py#newcode20 tools/telemetry/telemetry/core/platform/posix_platform_backend.py:20: if re.match(r'\s*\(.+\) NOPASSWD: ...
6 years ago (2014-12-04 16:03:15 UTC) #6
Sami
lgtm with an indentation tweak. https://codereview.chromium.org/750093007/diff/20001/tools/telemetry/telemetry/core/platform/posix_platform_backend.py File tools/telemetry/telemetry/core/platform/posix_platform_backend.py (right): https://codereview.chromium.org/750093007/diff/20001/tools/telemetry/telemetry/core/platform/posix_platform_backend.py#newcode17 tools/telemetry/telemetry/core/platform/posix_platform_backend.py:17: """Returns True if the ...
6 years ago (2014-12-04 16:05:50 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/750093007/40001
6 years ago (2014-12-04 16:08:43 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years ago (2014-12-04 17:08:03 UTC) #10
commit-bot: I haz the power
6 years ago (2014-12-04 17:09:02 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fe5b98e23b5cfd2bce79edc7a92069fbbe3b9fe6
Cr-Commit-Position: refs/heads/master@{#306839}

Powered by Google App Engine
This is Rietveld 408576698