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

Issue 10909044: Linux: initialize the sandbox in the Plugin process. (Closed)

Created:
8 years, 3 months ago by jln (very slow on Chromium)
Modified:
8 years, 3 months ago
Reviewers:
jschuh, cevans, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Markus (顧孟勤), Chris Evans
Visibility:
Public.

Description

Linux: initialize the sandbox in the Plugin process. We don't have a policy for plugin processes so we apply a basic blacklist. It's unlikely that we'll do much more in the future. BUG=

Patch Set 1 #

Patch Set 2 : AllowAll #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M content/common/sandbox_seccomp_bpf_linux.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/plugin/plugin_main.cc View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
jln (very slow on Chromium)
Hello Antoine, this is part of an effort to make sure that all processes start ...
8 years, 3 months ago (2012-09-01 00:34:59 UTC) #1
jln (very slow on Chromium)
On 2012/09/01 00:34:59, Julien Tinnes wrote: > Hello Antoine, > > this is part of ...
8 years, 3 months ago (2012-09-01 00:35:59 UTC) #2
piman
I'm confused - plugins can't be loaded in the sandbox.
8 years, 3 months ago (2012-09-01 00:37:14 UTC) #3
jln (very slow on Chromium)
On 2012/09/01 00:37:14, piman wrote: > I'm confused - plugins can't be loaded in the ...
8 years, 3 months ago (2012-09-01 00:49:27 UTC) #4
Jorge Lucangeli Obes
On 2012/09/01 00:49:27, Julien Tinnes wrote: > On 2012/09/01 00:37:14, piman wrote: > > I'm ...
8 years, 3 months ago (2012-09-01 01:16:47 UTC) #5
jln (very slow on Chromium)
On 2012/09/01 01:16:47, Jorge Lucangeli Obes wrote: > On 2012/09/01 00:49:27, Julien Tinnes wrote: > ...
8 years, 3 months ago (2012-09-01 01:26:48 UTC) #6
jln (very slow on Chromium)
On 2012/09/01 01:26:48, Julien Tinnes wrote: > On 2012/09/01 01:16:47, Jorge Lucangeli Obes wrote: > ...
8 years, 3 months ago (2012-09-01 01:30:53 UTC) #7
cevans
On Fri, Aug 31, 2012 at 6:30 PM, <jln@chromium.org> wrote: > On 2012/09/01 01:26:48, Julien ...
8 years, 3 months ago (2012-09-01 01:33:26 UTC) #8
jln (very slow on Chromium)
On Fri, Aug 31, 2012 at 6:33 PM, Chris Evans <cevans@google.com> wrote: > Do we ...
8 years, 3 months ago (2012-09-01 01:58:45 UTC) #9
jschuh
8 years, 3 months ago (2012-09-01 02:01:52 UTC) #10
On Fri, Aug 31, 2012 at 6:58 PM, Julien Tinnes <jln@chromium.org> wrote:

> On Fri, Aug 31, 2012 at 6:33 PM, Chris Evans <cevans@google.com> wrote:
>
> > Do we still have the --safe-plugins flag? In the early days of Windows,
> this
> > placed plug-ins inside the sandbox even though it broke them in various
> > ways. Interesting for testing.
> >
> > If the flag still existed, it'd be interesting to give it a try on Linux.
> > For a start, it could imply the usual ptrace() restrictions plus deny of
> > opening any file for writing, plus deny of other filesystem-changing
> > syscalls (rename() unlink() etc).
> >
> > I wouldn't be surprised if a reasonably safer Java couldn't be achieved
> with
> > a bit of fiddling.
>
> There is still definitely some Windows sandbox initialization in
> there. There is a special case for Flash, as we know.
>
> Other than that, I've just noticed that ContentClient::SandboxPlugin()
> actually just always returns false, so maybe I was mistaken before and
> there  really nothing is done for plugins other than Flash.
>
> Adding Justin to make sure I read that correctly. When did the
> safe-plugins switch disappear ? I think I still have it in my windows
> profile :)
>

It's been gone for about a year because it was worthless (as in anything
you can do is trivially bypassed). I've spent too much time trying to
tackle that problem, and would advise anyone away from it. Best to just
leave NPAPI alone.

-j


Julien
>

Powered by Google App Engine
This is Rietveld 408576698