How to load Pepper Flash on Linux with sandbox enabled

504 views
Skip to first unread message

Marshall Greenblatt

unread,
Mar 25, 2015, 6:52:13 PM3/25/15
to chromium-dev
Hi All,

I'm trying to load the Pepper Flash plugin in my Chromium-based application on Linux (Ubuntu 14.04 LTS 64-bit) as follows:

./out/Release/myapp --ppapi-flash-path=/opt/google/chrome-unstable/PepperFlash/libpepflashplayer.so --ppapi-flash-version=17.0.0.141

This fails with the following error:

[0325/154409:ERROR:ppapi_thread.cc(278)] Failed to load Pepper module from /opt/google/chrome-unstable/PepperFlash/libpepflashplayer.so (error: /opt/google/chrome-unstable/PepperFlash/libpepflashplayer.so: cannot open shared object file: Operation not permitted)

However, it loads correctly in my application if I add the `--no-sandbox` command-line flag.

How does Google Chrome configure the sandbox to allow Flash to load? Can anyone point me to the correct location in the code?

Thanks,
Marshall

Antoine Labour

unread,
Mar 25, 2015, 8:15:00 PM3/25/15
to Marshall Greenblatt, chromium-dev
We preload all plugins .so in the zygote before enabling the sandbox. See PreloadPepperPlugins in content/zygote/zygote_main_linux.cc

Antoine 

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

Reply all
Reply to author
Forward
0 new messages