UploadCrashes: run in the main mount namespace

When debugd launches, it places itself into a new mount namespace at
boot time.  That means that any tools it invokes won't have access to
all the user mounts.  Normally this is a good thing, but this makes
sending crashes a lot less useful to the end user as they often want
to trigger user crashes in addition to system crashes.

For now, wrap the crash_sender call with nsenter so that we run in
the same mount namespace as init (which should be the same namespace
that user mounts are made in).  We probably want this logic to get
merged into minijail in some way.

BUG=chromium:376639
TEST=generated a chrome crash; invoked new crash_sender via debugd; saw user crash get uploaded
TEST=`cbuildbot x86-generic-full` works

Change-Id: I9a3e2673ed285daab16dcc301b069f7fccd8769a
Reviewed-on: https://chromium-review.googlesource.com/201374
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
1 file changed
tree: 5ddfc5e6a33f80d3db5821722152e2896a00cadb
  1. .gitignore
  2. OWNERS
  3. README
  4. debugd.gyp
  5. doc/
  6. share/
  7. src/