Change smack label of spawned WebProcess/PluginProcess to proper one.
[Issue] N/A
[Problem] WebProcess/PluginProcess spawned from web-provider have so many smack permissions
[Cause] There was no way to change proper smack label of spawned webkit processes.
We had made web-provider have so many smack permissions, so that
spawned webkit processes inherited the all permissions.
This is dangerous on side of security of app resources.
[Solution] For resolving this, we have made WebProcess/PluginProcess change its smack label itself.
this webkit patch does that (https://tizendev.org/gerrit/#/c/90502/)
To request to change smack label to webkit, web-provider must set the following env variables.
For WebProcess : setenv("WEB_PROCESS_EXECUTABLE_PATH", "/path/to/webprocess/symlink", 1);
For PluginProcess : setenv("PLUGIN_PROCESS_EXECUTABLE_PATH", "/paht/to/pluginprocess/symlink", 1);
values of each env variable should be different per each web application.
Change-Id: Ifde0fd5555e4955aed9950a6d2a47c2d0b80a5a4