GoogleCloudPlatform / runtimes-common

Common tools used by the GCP runtimes.
Apache License 2.0
94 stars 53 forks source link

Propagate env vars to sudo invocations. #808

Closed msuozzo closed 2 years ago

msuozzo commented 2 years ago

From the sudo man page:

     -E, --preserve-env
                 Indicates to the security policy that the user wishes to preserve their existing environment
                 variables.  The security policy may return an error if the user does not have permission to
                 preserve the environment.