It doesn't matter if env vars are removed before or after forking as exec replaces the environment anyway. If we introduce a rust shadow environment, this shadow environment would be passed to exec, not the original C environment. The only issue is with C accessing the original environment.
↧