You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix environment variable passing through su in Linux jail
When using su to drop privileges in Linux jail, environment variables
set via cmd.env() were not being preserved properly. This caused TLS
certificate validation to fail because CA certificate environment
variables weren't reaching the child process.
The fix explicitly exports environment variables in the shell command
passed to su -c, ensuring they're available in the dropped-privilege
context.
- Export env vars explicitly in shell command for su
- Use proper shell escaping for values with special characters
- Preserve SUDO_* environment variables for consistency
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments