Home
last modified time | relevance | path

Searched refs:saved_envvar (Results 1 – 2 of 2) sorted by relevance

/external/libchrome/sandbox/linux/suid/common/
Dsuid_unsafe_environment_variables.h63 char* const saved_envvar = (char*) malloc(saved_envvarlen); in SandboxSavedEnvironmentVariable() local
64 if (!saved_envvar) in SandboxSavedEnvironmentVariable()
67 memcpy(saved_envvar, "SANDBOX_", 8); in SandboxSavedEnvironmentVariable()
68 memcpy(saved_envvar + 8, envvar, envvar_len); in SandboxSavedEnvironmentVariable()
69 saved_envvar[8 + envvar_len] = 0; in SandboxSavedEnvironmentVariable()
71 return saved_envvar; in SandboxSavedEnvironmentVariable()
/external/libchrome/sandbox/linux/suid/
Dsandbox.c363 char* const saved_envvar = SandboxSavedEnvironmentVariable(envvar); in SetupChildEnvironment() local
364 if (!saved_envvar) in SetupChildEnvironment()
367 const char* const value = getenv(saved_envvar); in SetupChildEnvironment()
370 unsetenv(saved_envvar); in SetupChildEnvironment()
373 free(saved_envvar); in SetupChildEnvironment()