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

Issue 15848019: Use sudo in remoting init.d script to get a clean per-user environment (Closed)

Created:
7 years, 6 months ago by Lambros
Modified:
7 years, 6 months ago
Reviewers:
Sergey Ulanov, Jamie, Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, weitaosu+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Use sudo in remoting init.d script to get a clean per-user environment Using 'sudo' to start the per-user process ensures the ulimits (and hopefully other environment settings) are set properly. BUG=169802 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205486

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments #

Total comments: 4

Patch Set 3 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -8 lines) Patch
M remoting/host/installer/linux/debian/chrome-remote-desktop.init View 1 2 2 chunks +15 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Lambros
It seems a simple enough fix, but not completely without risk :) WDYT? In particular, ...
7 years, 6 months ago (2013-06-06 22:00:06 UTC) #1
Jamie
lgtm https://codereview.chromium.org/15848019/diff/1/remoting/host/installer/linux/debian/chrome-remote-desktop.init File remoting/host/installer/linux/debian/chrome-remote-desktop.init (right): https://codereview.chromium.org/15848019/diff/1/remoting/host/installer/linux/debian/chrome-remote-desktop.init#newcode59 remoting/host/installer/linux/debian/chrome-remote-desktop.init:59: shell="$(getent passwd "$user" | cut -d: -f7)" Remove ...
7 years, 6 months ago (2013-06-06 22:13:04 UTC) #2
Sergey Ulanov
https://codereview.chromium.org/15848019/diff/1/remoting/host/installer/linux/debian/chrome-remote-desktop.init File remoting/host/installer/linux/debian/chrome-remote-desktop.init (right): https://codereview.chromium.org/15848019/diff/1/remoting/host/installer/linux/debian/chrome-remote-desktop.init#newcode60 remoting/host/installer/linux/debian/chrome-remote-desktop.init:60: sudo -i -b -u "$user" start-stop-daemon --exec "$exec" --start ...
7 years, 6 months ago (2013-06-06 22:22:43 UTC) #3
Lambros
https://codereview.chromium.org/15848019/diff/1/remoting/host/installer/linux/debian/chrome-remote-desktop.init File remoting/host/installer/linux/debian/chrome-remote-desktop.init (right): https://codereview.chromium.org/15848019/diff/1/remoting/host/installer/linux/debian/chrome-remote-desktop.init#newcode59 remoting/host/installer/linux/debian/chrome-remote-desktop.init:59: shell="$(getent passwd "$user" | cut -d: -f7)" On 2013/06/06 ...
7 years, 6 months ago (2013-06-07 01:22:16 UTC) #4
Sergey Ulanov
lgtm when my comments are addressed https://codereview.chromium.org/15848019/diff/6001/remoting/host/installer/linux/debian/chrome-remote-desktop.init File remoting/host/installer/linux/debian/chrome-remote-desktop.init (right): https://codereview.chromium.org/15848019/diff/6001/remoting/host/installer/linux/debian/chrome-remote-desktop.init#newcode49 remoting/host/installer/linux/debian/chrome-remote-desktop.init:49: # Usage: run_and_ignore_error ...
7 years, 6 months ago (2013-06-07 20:51:21 UTC) #5
Lambros
https://codereview.chromium.org/15848019/diff/6001/remoting/host/installer/linux/debian/chrome-remote-desktop.init File remoting/host/installer/linux/debian/chrome-remote-desktop.init (right): https://codereview.chromium.org/15848019/diff/6001/remoting/host/installer/linux/debian/chrome-remote-desktop.init#newcode49 remoting/host/installer/linux/debian/chrome-remote-desktop.init:49: # Usage: run_and_ignore_error [-l] user program [args...] On 2013/06/07 ...
7 years, 6 months ago (2013-06-11 01:41:02 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lambroslambrou@chromium.org/15848019/11002
7 years, 6 months ago (2013-06-11 01:42:31 UTC) #7
commit-bot: I haz the power
7 years, 6 months ago (2013-06-11 10:56:20 UTC) #8
Message was sent while issue was closed.
Change committed as 205486

Powered by Google App Engine
This is Rietveld 408576698