Description[Telemetry] Improve elevate_privilege handling in LaunchApplication() + Fix killing of power metrics process on bots.
1. Fix case where calling LauchApplication() twice in a row with elevate_privelege=True will not prepend sudo on the second invocation. This behavior occurs because sudo is already authenticated therefore IsElevated() returns True causing CanRunElevatedWithoutSudo() to return True.
2. Moving functions that handle sudo and setuid to a new utility function.
3. Do not prompt to set sticky bit on binaries run with elevate_privilege=True
4. Re-enable power and smoke unit tests on Mac 10.9.
BUG=420615, 423688
Committed: https://crrev.com/c045fc3103d04ab47f1cf0e55457979ee203a940
Cr-Commit-Position: refs/heads/master@{#305691}
Patch Set 1 #Patch Set 2 : Style + comment fixes #
Total comments: 3
Patch Set 3 : Smaller chnage #Patch Set 4 : Comment fix #
Messages
Total messages: 10 (2 generated)
|