DescriptionSetuid sandbox API versioning
We introduce API versioning to the setuid sandbox and issue warnings when
the versions Chrome and the Sandbox expect are different.
1. The Zygote launcher in the browser will export the API version it expects
to the environment.
2. The setuid sandbox will match its own version with the one in the
environment.
3. Afterwards, it will export the API it provides to the environment for the
sandboxed process.
4. The Zygote (the sandboxed process) will in turn check for the API number.
The double check is needed because a version of the browser or of the setuid
sandbox that does check for API could co-exist with a version that does not.
The various utilities that are part of the setuid sandbox are not versioned
because they have callers that are external to Chrome (in ChromeOS).
When environment variables are not found, we assume version 0. Since the API
is for now set to 0, this change will not produce any warning at the moment.
BUG=None
TEST=None
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140456
Patch Set 1 #
Total comments: 6
Patch Set 2 : change environment variables names #Patch Set 3 : Switch return value logic in CheckAndExportApiVersion #
Total comments: 1
Patch Set 4 : Indent SetSandboxAPIEnvironmentVariable #Patch Set 5 : rebase on current state of tree #
Messages
Total messages: 12 (0 generated)
|